sumif across worksheets

Besh

New Member
Joined
Jun 16, 2011
Messages
31
My understanding is that I cannot do sumif across multiple worksheets. As such, what should I do to achieve the below?

Across 10 identical worksheets, I want to sum e54 if B2 = "TB"

Thanks, Besh
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
do it in VBA cycle through each worksheet checking if your check is true and if so store the value of e54 and then sum at the end ?
 
Upvote 0
My understanding is that I cannot do sumif across multiple worksheets. As such, what should I do to achieve the below?

Across 10 identical worksheets, I want to sum e54 if B2 = "TB"

Thanks, Besh
Do the sheet names follow some sort of sequential naming pattern?

Like the default sheet names are Sheet1, Sheet2, Sheet3, etc.

Or, are the sheet names random? Boston, Atlanta, Pittsburgh, Orlando, etc.
 
Upvote 0
Yes, the names have a sequential pattern. It's "Case 1", "Case 2" and so on through to "Case 10". They are to tabulated on a sheet called "Cover".
 
Upvote 0
Yes, the names have a sequential pattern. It's "Case 1", "Case 2" and so on through to "Case 10". They are to tabulated on a sheet called "Cover".
Try this...

=SUMPRODUCT(SUMIF(INDIRECT("'Case "&{1,2,3,4,5,6,7,8,9,10}&"'!B2"),"TB",INDIRECT("'Case "&{1,2,3,4,5,6,7,8,9,10}&"'!E54")))

You can use a defined name to replace the array constant{1,2,3,4,5,6,7,8,9,10}

Name: Sheets
Refers to: ={1,2,3,4,5,6,7,8,9,10}

Then the formula becomes:

=SUMPRODUCT(SUMIF(INDIRECT("'Case "&Sheets&"'!B2"),"TB",INDIRECT("'Case "&Sheets&"'!E54")))
 
Upvote 0
nice, works. you're the man. thanks.

thanks to you as well tiaxl, i never got fully through your suggestion b/c i've never used vba - i'll read up on it more once this project is over.

best regards, besh
 
Upvote 0
nice, works. you're the man. thanks.

thanks to you as well tiaxl, i never got fully through your suggestion b/c i've never used vba - i'll read up on it more once this project is over.

best regards, besh
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,922
Latest member
nstaab07

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