fill down with sum of consecutive ranges

winstonw

Board Regular
Joined
Jan 17, 2008
Messages
156
For a range A1:A100, in column D I want to sum(A1:A4), then sum(A5:A8), etc

ColA is quarterly data and I am trying to convert it to annual.

There's a lot of data so I was wondering the formula could be written in ColD to fill down.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Can anybody advise how this formula can be modified to do the same for columns? I am trying to do the same for consecutive ranges of 4 columns, and have tried to modify the formula, but can't get it right.
 
Upvote 0
Read up on the OFFSET() function to fully understand it.

=OFFSET(StartingRange, OffsetRow(s), OffsetColumn(s), NumberOfRows, NumberofColumns)

The first version used the 2nd and 4th parameters to do "row" offsets and sizings. You would use the 3rd and 5th parameters instead:

Enter this starting formula in a cell and copy to the right:
=SUM(OFFSET($A$1, ,(COLUMN(A1)*4)-4, , 4))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top