INDIRECT and Non contiguous ranges

helpme290

New Member
Joined
Jul 13, 2015
Messages
33
This is my first post on MREXCEL and am excited to start learning!

I am trying to SUM a Dynamic INDIRECT formula the only Issue the I am trying to sum cells AZ28, BA26, W26 and X26
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Where does your INDIRECT formula sit?

Theoretically speaking, =sum(AZ28, BA26, W26, X26) should work, unless, of course, the output of the formulas populating those cells isn't delivering numeric values.
 
Upvote 0
Sorry should have explained better!

So I need to collect data from about 200 different sheets. The sheets all have different names. I need to sum the Data within cells AZ28, BA26, W26 and X26 in each one of those sheets.

INDIRECT("'" & $E19 & "'!" & P$2) - this is the formula i am using when i need to just get the data for cell AZ28.

Cell E19 is where the sheet name is and N2 is where i placed AZ28

Am I being confusing?
 
Upvote 0
Are the values in the same place on every sheet, and the sheets consecutive?
If so, you can do a 3D formula.

=sum(sheet2:sheet202!AZ28)

Will give you the sum of AZ28 on sheets sheet2->sheet202
 
Upvote 0
Thanks Slinky! However I have them Sum of AZ28 for all of the sheets.


I am trying to sum Cells: AZ26, BA26, W26 and X26 so I can get a total for each particular sheet.
 
Upvote 0
So, for an example I chucked a sheet name in F1 and Cell References If G1 - J1..

=SUM(INDIRECT(F1&"!"&G1),INDIRECT(F1&"!"&H1),INDIRECT(F1&"!"&I1),INDIRECT(F1&"!"&J1))

I wouldn't want to use that many times, but it does the job.
 
Last edited:
Upvote 0
That was what I was afraid of I was hoping to find a way around that but I dont think its possiable. Thanks for you help Slinky!
 
Upvote 0
I just want to make sure I understand exactly what you're trying to do.

Do you want a list of totals per sheet? i.e.
Sheet 1 - Total
Sheet 2 - Total
Sheet 3 - Total

Or do you want something else?
If it's the above, and you're going to set it up once and use it repeatedly, I'd invest the energy in creating the formulas properly so as to cut down on the long term potential issue with using hundreds of INDIRECT formulas.
 
Upvote 0
Yes the list totals per sheet. I was afraid that using a mile long indirect formula is the only way.

Thanks for your help
 
Upvote 0

Forum statistics

Threads
1,223,928
Messages
6,175,445
Members
452,642
Latest member
acarrigan

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