sum cells in sheets that meet criteria

tomanton

New Member
Joined
Jan 28, 2014
Messages
26
hello folks

I'm trying to sum cell values accross different sheets in a wb, depending whether a sheet falls under a certain category
I have a summary sheet where all the sheets are simply added toghther. there are about 40-50 sheets and each of them fall in 1 out of 3 categories. So i listed sheet names and added next to them which category they belong to, so depending on sheet's category i could sum values of relevant sheets only, but i cant seem to find a solution to it.
i.e. i want to sum values of C6 cells in all sheets that are in category 3. Thanks

<tbody>
Tab nameCategory
Sheet1City1
Sheet2City2
Sheet3City1
Sheet4City2
Sheet5City1
Sheet6City1
Sheet7City1
Sheet8City1
Sheet9City1
Sheet10City1
Sheet11City1
Sheet12City2
Sheet13City1
Sheet14City2
Sheet15City2
Sheet16City2
Sheet17City1
Sheet18City2
Sheet19City1
Sheet20City2
Sheet21City1
Sheet22City1
Sheet23City2
Sheet24City1
Sheet25City2
Sheet26City1
Sheet27City1
Sheet28City1
Sheet29City2
Sheet30City1
Sheet31City1
Sheet32City1
Sheet33City1
Sheet34City1
Sheet35City2
Sheet36City1
Sheet37City2
Sheet38City1
Sheet39City2
Sheet40City1
Sheet41City2
Sheet42City1
Sheet43City1
Sheet44City1
Sheet45City2
Sheet46City2
Sheet47City1
Sheet48City2
Sheet49City1
Sheet50City2
Sheet51City1
Sheet52City1
Sheet53City2
Sheet54City2
Sheet55City3
Sheet56City3
Sheet57City3

<colgroup><col><col></colgroup><tbody>
</tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
researched with no avail. sumif works for range and i need to sum specific cells in the sheets that meet validations. any ideas?
 
Upvote 0
Hi,

Try this

SheetList = all your sheets names
C4 in each sheet contain the value 3 (
category 3)
D4 the value to sum

=SUMPRODUCT(SUMIFS(OFFSET(INDIRECT("'"&SheetList&"'!D4"),,),INDIRECT("'"&TabList&"'!C4"),3))
 
Last edited:
Upvote 0
As i have solved the issue i want to share it so someone may find it any other uses:
Column P contains Sheet names
Column R contains condition for sheets (sheets belong to either HSL or LPH group)

i want to sum up values of cells B7 across sheets that belong to HSL group and the formula that worked for me was this
=SUM(IF(R1:R3="HSL",SUMIF(INDIRECT("'"&P1:P3&"'!$B$7"),"<1E100")))
confirmed with Ctrl+Shift+Enter as it's an array formula

good luck!
 
Upvote 0

Forum statistics

Threads
1,215,353
Messages
6,124,464
Members
449,163
Latest member
kshealy

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