Excel- Sum a range

septimus

Board Regular
Joined
Nov 20, 2014
Messages
69
Hi all;
I have data in range A5:O5. I make a Sum function of range (A5:E5) in cell A6 and drag this formular to cell B6 and C6.How to make a automatic Sum function in B6 = sum(F5:J5) and C6=sum(K5:O5).
Regards!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
In A6 enter and copy across:

=SUM(INDEX($A$5:$O$5,0,(COLUMNS($A$5:A5)-1)*5+1):INDEX($A$5:$O$5,0,(COLUMNS($A$5:A5))*5))
 
Upvote 0
Hi FDibbins;
Thank your concern.
I know Sumif function.
In my case, i want to know how to copy formula in from cell A6 to B6 and C6 and the range will changed every step by 5 cells instead of changing by step 1.
Regards!
 
Upvote 0
Yes, I understand what you want to do, but if you have headings that may show which columns you are dealing with, then SUMIF may be an option
 
Upvote 0
See post 3...

By the way, the following does the same, which is in terms of OFFSET...

=SUM(OFFSET($A$5,0,((COLUMNS($A$6:A6)-1)*5+1)-1,1,5))
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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