Sum data from multiple sheets for multiple criteria

Frank J

Board Regular
Joined
Feb 17, 2011
Messages
104
Office Version
  1. 365
Platform
  1. Windows
I have a Summation sheet that needs to collect and total data for staff across 26 other sheets. They are all formatted the same and the data needed sits in the same column on all 26. I'm using their Employee ID # as a reference point since it's unique to each employee. I've tried but failed with Index/Match and am not sure how to use Indirect to help pull the data together

The 26 sheets have the data in data Tables uniquely named.

I'm using Excel 2016

1616193406947.png
 
"I need it to total all the monthly sheets, how will that do it? Seems to be pulling only an individual month"

Some of your information seemed to indicate that you were trying to secure data from each sheet.

An example of the suggestion follows. Try the suggestion and then edit for your actual workbook.

My recommendation follows:

1. open a new workbook
2. build a mini example (you can start with the information below)
see the icon below the F(x)
3. add or replicate the data sheets
4. name your list of sheet names
5. test and review the formula and results
6. then create a mini model similar to your data
7. test and review the edited formula and results

Then try the formula on your actual data

sum-single-criteria-multiple-sheets.xlsx
AB
1CriteriaResult
2A450
3B125
Summary
Cell Formulas
RangeFormula
B2:B3B2=SUMPRODUCT(SUMIF(INDIRECT("'"&SheetNames&"'!$A$2:$A$10"),A2,INDIRECT("'"&SheetNames&"'!$B$2:$B$10")))
Named Ranges
NameRefers ToCells
Sheet_Names=Summary!$I$2:$I$4B2:B3
SheetNames=Summary!$I$2:$I$4B2:B3



sum-single-criteria-multiple-sheets.xlsx
AB
1CategoryAmount
2A120
3B35
4C25
5A230
6
Sheet1
 
Last edited:
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I figured it out, I had set my named range of tabs to include empty cells for future use. I just changed the range to only cells with tab names in them and it worked just fine.
 
Upvote 0
"I figured it out, I had set my named range of tabs to include empty cells for future use. I just changed the range to only cells with tab names in them and it worked just fine."

Very good.

You could try a mini Table for the sheet names.
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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