# Excel- Sum a range

#### septimus

##### Board Regular
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 Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

#### FDibbins

##### MrExcel MVP
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))

#### septimus

##### Board Regular
Hi FDibbins;
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!

#### FDibbins

##### Well-known Member
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

#### septimus

It's great!

##### MrExcel MVP
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))

#### septimus

##### Board Regular
It look more simple and easier to apply in my excel board.
Thank again!

Replies
12
Views
592
Replies
0
Views
301
Replies
6
Views
522
Replies
2
Views
243
Replies
2
Views
241

1,190,860
Messages
5,983,269
Members
439,833
Latest member
CDaviess

### 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.

### Which adblocker are you using?

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

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