SUMIF, INDIRECT, SUMPRODUCT

vzq032372

New Member
Joined
Dec 17, 2015
Messages
37
I have a spreadsheet with multiple sheets that look exactly the same. I have found a way to sum all of them together but now I'm being asked to sum up only the tabs that the user selects.

I am trying to figure it out and so far only have the following (see pic attached). I'm trying to update the second formula so that it only includes the tabs marked with a 1 next to it. And I'm only adding the "1" as some sort of way to define the tabs they want to sum up. Let me know I need to clarify and thanks in advance for your help.





image001.png
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Not retyping your whole formula, here's the basic format of what you need.

=SUM(IF(List!H3:H8=1,INDIRECT(...),0))
 
Upvote 0
If you have office 365

Excel Formula:
=SUM(INDIRECT("'"&FILTER(A1:A4,B1:B4=1)&"'!A1"))
 
Upvote 0
This formula returns #VALUE when I try it
It's not a complete formula, it's just to demonstrate the basic structure of what is required. As I said, I'm not retyping the whole thing. We can't copy and paste a formula from a screen capture.
 
Upvote 0
Review the syntax in my example.

3D Sumif.xlsm
ABCDEFG
1rSheetsRequired
21a11518
31b4560
41c1
51d1
Total
Cell Formulas
RangeFormula
F2:G3F2=SUM(INDIRECT("'"&FILTER($A$1:$A$5,$B$1:$B$5=1)&"'!"&CELL("address",C5)))
Named Ranges
NameRefers ToCells
rSheets=OFFSET(Total!$A$2,0,0,COUNTA(Total!$A$2:$A$15),1)F2:G3
 
Upvote 0
N.B.
For your question, you do not need the Named Range that showed on the post.
Just look at the data in A1:B5
Named RangesNameRefers ToCellsrSheets=OFFSET(Total!$A$2,0,0,COUNTA(Total!$A$2:$A$15),1)F2:G3
 
Upvote 0

Forum statistics

Threads
1,223,957
Messages
6,175,622
Members
452,661
Latest member
Nonhle

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