I’m trying to write a formula that sums the same cell in a variable range of sheets, where I can enter the names of beginning sheet and ending sheet of the range in cells to be used in the formula (simple example attached), i.e., something with the same result as:
=Sum(Sheet1:Sheet3!A1)
But where I can change Sheet1 and Sheet3 to the values in cells C1 and C2 (e.g., June 2010 and September 2010)
It seems like something like this should work:
=SUM(INDIRECT("'"&C1&"'!A1"):INDIRECT("'"&C2&"'!A1"))
The closest I found from another forum is:
=SUMPRODUCT(SUMIF(INDIRECT("'"&C1:C4&"'!A1"),"<>=0"))
…but it only sums the first and last sheets, not the sheets in between. Does this require a macro?
Thanks in advance for any advice….
Bookmarks