Adding Named Range Across Multiple Sheets

RossyDownUnder

New Member
Joined
Apr 11, 2022
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have a workbook that contains multiple sheets to record the jobs that each employee works on and the profit we make from each of those jobs. At the bottom of the list of jobs I have totalled the profits made by that employee and named the cell "TotalProfit" (scope is the sheet name). I want to put the total of these on a summary page so that I can compare it to other data. Each employee will have a different number of jobs at any given time and additional employees will be added from time to time.

Is there a way that I can sum the "TotalProfit" from each sheet.

Thanks in Advance
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Is there any pattern to the sheet names?
 
Upvote 0
If you can put a list of them somewhere, you can use that with INDIRECT - e.g.

Excel Formula:
=SUM(INDIRECT("'"&A2:A20&"'!TotalProfit"))

where A2:A20 contains the sheet names
 
Upvote 0
If you can put a list of them somewhere, you can use that with INDIRECT - e.g.

Excel Formula:
=SUM(INDIRECT("'"&A2:A20&"'!TotalProfit"))

where A2:A20 contains the sheet names
Hi RoryA, Thanks for the help but I enter the above, changing the cell references to A4:A6 as my test file only has 3 employees, it returns #VALUE!.
 
Upvote 0
In 2016 you'll probably need to enter it using Ctrl+Shift+Enter not just enter.
 
Upvote 0
Hi RoryA, Thanks for the help but I enter the above, changing the cell references to A4:A6 as my test file only has 3 employees, it returns #VALUE!.
Thanks RoryA, that has fixed the #value issue but the total showing is only showing the total for the first employee
 
Upvote 0
Odd, it works in 365 (I don't have 2016 any more to test). How about:

=SUM(N(INDIRECT("'"&A2:A20&"'!TotalProfit")))

again entered with Ctrl+Shift+Enter?
 
Upvote 0
Solution
Odd, it works in 365 (I don't have 2016 any more to test). How about:

=SUM(N(INDIRECT("'"&A2:A20&"'!TotalProfit")))

again entered with Ctrl+Shift+Enter?
Thanks RoryA that fixed work. Greatly appreciate your assistance.
 
Upvote 0
try the formula with SumProduct
I did not test with earlier versions.

T202311a.xlsm
BCD
1
2
3505050
4
5b
Cell Formulas
RangeFormula
B3B3=SUM(INDIRECT("'"&SheetNames&"'!TotalProfit"))
C3C3=SUMPRODUCT(INDIRECT("'"&SheetNames&"'!TotalProfit"))
D3D3=SUMPRODUCT(--(INDIRECT("'"&SheetNames&"'!TotalProfit")))
Named Ranges
NameRefers ToCells
SheetNames='5b'!$A$3B3:D3
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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