English 中文(简体)
Is there something I can add into my formula to autofill my cell range in increments of 12 instead 0f 1?
原标题:

Formula autofill help

Hello, I m learning excel and for work I need to combined large chunks of data from one sheet to another. I came up with the formula =SUM( 940748 SB Class 05-08-23 !F1:F12) in the second sheet for the first batch of data from sheet one. The problem I am having is when fill down the formula I need the cell range to increase by increments of 12 not 1, so F1:F12 becomes F13,F24 when I fill down one row. My knowledge of excel is very limited so I have no clue on were to even begin to get this done.

问题回答

INDIRECT() as well as INDEX() will work. I suggest to use non volatile function INDEX(). Try-

=SUM(INDEX(Sheet2!A:A,ROW($A1)*12-11):INDEX(Sheet2!A:A,ROW($A1)*12))

For Microsoft-365 can try below formula if your data is continuous.

=BYROW(WRAPROWS(TOCOL(Sheet2!A:A,1),12,0),
LAMBDA(x,SUM(x)))

enter image description here





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签