Indirect fomula, multiple worksheets and sum function

LHL

New Member
Joined
Sep 30, 2009
Messages
1
I have multiple workbooks containing a different number of worksheets with budgets in the exact same format. I would like to add a sheet (in the same format as all the sheets) in each book that sums up the other sheets in that book. In the sum-up sheet, however, I would like two cells to hold the names of the first and last sheet respectively, so that it is easy to copy the sum-up template into the other books as it is only those two cells that have to be changed. I have managed to make it work for a single cell using the following formula:<o:p></o:p>
<o:p> </o:p>
=Sum(INDIRECT("'"&$B$4&":"&$B$5&""'!"&"D35")<o:p></o:p>
<o:p> </o:p>
Where B4 and B5 is the name of the first and last sheet and D35 is the cell that I would like the sums of (it is also the cell that the formula is in). With this formula it is not possible to add the D35 as a relative reference, so I have to manually type it in for every cell. Can I make it relative?<o:p></o:p>
<o:p> </o:p>
Thank you in advance!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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