Changing AutoFill cell reference (WindowsXP, Office 2003)

pssureshbabu

New Member
Joined
Oct 5, 2006
Messages
16
Hello all!

I notice my AutoFill option do like this:

=SUM(A1:A5)

After dragging down using autofill, the result is

=SUM(A2:A6)
=SUM(A3:A7)

is it possible to program autofill to do the following?

=SUM(A6:A10)
=SUM(A11:A15)

and so on...

thanks for your help,

Babu
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You would need a formula like these:

=SUM(INDEX(A:A,((ROW(A1)-ROW(A$1))*5)+1):INDEX(A:A,((ROW(A1)-ROW(A$1))*5)+5))

=SUM(OFFSET(A$1,(ROW(A1)-ROW(A$1))*5,0,5))

The INDEX formula is longer, but it's not volatile like OFFSET is.
 

Forum statistics

Threads
1,141,913
Messages
5,709,306
Members
421,626
Latest member
indigochild

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
Top