# Summing several rows using index function

#### howard

##### Well-known Member
I have several rows that I want to add using the index function for eg row 1504:1510-see my formula below

=-SUM(INDEX(sheet1!1504:1504,95)+SUM(INDEX(sheet1!1506:1506,95)+SUM(INDEX(sheet1!1507:1507,95))))

Is there and easier way to add these rows using the index formula. The reson why I anm using the index formula instead of the offset formula is that 1 new column is added each month

Your assistance will be most appreciated

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

##### Well-known Member
I have several rows that I want to add using the index function for eg row 1504:1510-see my formula below

=-SUM(INDEX(sheet1!1504:1504,95)+SUM(INDEX(sheet1!1506:1506,95)+SUM(INDEX(sheet1!1507:1507,95))))

Is there and easier way to add these rows using the index formula. The reson why I anm using the index formula instead of the offset formula is that 1 new column is added each month

Your assistance will be most appreciated

You could incorporate the offsett function into your Index. But i'm not seeing any column refs in

You could make a dynamic named range that expanded as colums were added using offset

#### howard

##### Well-known Member
Thanks for the reply. The column Ref is 95. How would I incorporate the offset function with the index function?

Replies
2
Views
205
Replies
5
Views
315
Replies
0
Views
306
Replies
1
Views
477
Replies
6
Views
362

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,399
Messages
5,831,408
Members
430,065
Latest member
ctornabe

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