Summing several rows using index function

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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
 
Upvote 0
Thanks for the reply. The column Ref is 95. How would I incorporate the offset function with the index function?
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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