How to 3D sum across sheets when cell locations are different ?

scott14

New Member
Joined
Nov 6, 2008
Messages
29
Say 159 worksheets each have a cell named 'Hours' but it's in a different location on each sheet.
How can you 3D sum across the 159 sheets for grand total Hours? In other words, instead of summing the same fixed cell location on each sheet, you sum the named cell which has different locations on each of the sheets.

It doesn't work to sum on the name: =SUM('Jan 2008:Apr 2021'!"Hours")
Thank you.
 

Domenic

I put your =ISNUMBER('Jan 2008'!Hours) on a summary worksheet, changing the month and year to several different ones in the workbook, where each month and year is a separate worksheet. Each time the cell said "TRUE".
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Did the suggestions solve your challenge?

Have you considered the structure of your data? If the data was on one sheet, your reporting could use simpler formulas, Pivot Tables, or other alternatives.
The post below includes a suggestion that works.

Another alternative would be to select all sheets and type a formula "=Hours" in a cell such as N1.
Put a empty sheet named Start in front of the relevant data sheets and a sheet named End after the relevant data sheets. The total would then be =SUM(Start:End!N1)

3d 2021.xlsm
KLMNOP
180SheetList
22017
32018
42019
52020
6
7
8SheetAmount
9Ref to cell20
10Indirect sheet202020
11Sumproduct80
Summary
Cell Formulas
RangeFormula
N1N1=SUM(Start:End!N1)
M9M9='2020'!Hours
M10M10=SUMPRODUCT(INDIRECT("'"&L10&"'!Hours"))
M11M11=SUMPRODUCT(N(INDIRECT("'"&Sheetlist&"'!Hours")))
Named Ranges
NameRefers ToCells
'2020'!Hours='2020'!$D$19M9
Sheetlist=Summary!$P$2:$P$5M11
 
Upvote 0
OK, I'll try these various ideas. Let's end this here. Either some of those suggestions will work (the vba code did not work, even after it was revised and suggested a 2nd time), or else I'll import the 159 the worksheets into MySQL and SELECT all the 'hours' cells and sum them, then copy the result from MySQL over to Excel. THANK YOU ALL! Scott

Did the suggestions solve your challenge?

Have you considered the structure of your data? If the data was on one sheet, your reporting could use simpler formulas, Pivot Tables, or other alternatives.
The post below includes a suggestion that works.

Another alternative would be to select all sheets and type a formula "=Hours" in a cell such as N1.
Put a empty sheet named Start in front of the relevant data sheets and a sheet named End after the relevant data sheets. The total would then be =SUM(Start:End!N1)

3d 2021.xlsm
KLMNOP
180SheetList
22017
32018
42019
52020
6
7
8SheetAmount
9Ref to cell20
10Indirect sheet202020
11Sumproduct80
Summary
Cell Formulas
RangeFormula
N1N1=SUM(Start:End!N1)
M9M9='2020'!Hours
M10M10=SUMPRODUCT(INDIRECT("'"&L10&"'!Hours"))
M11M11=SUMPRODUCT(N(INDIRECT("'"&Sheetlist&"'!Hours")))
Named Ranges
NameRefers ToCells
'2020'!Hours='2020'!$D$19M9
Sheetlist=Summary!$P$2:$P$5M11
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,988
Members
448,538
Latest member
alex78

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