Summing several rows using index function

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,115
Office Version
  1. 2021
Platform
  1. Windows
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.

scottylad2

Well-known Member
Joined
Feb 2, 2009
Messages
1,919
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
Joined
Jun 26, 2006
Messages
6,115
Office Version
  1. 2021
Platform
  1. Windows
Thanks for the reply. The column Ref is 95. How would I incorporate the offset function with the index function?
 
Master Excel Bundle

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.

Forum statistics

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