Countif on multiple sheets

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
Is is possible to use countif on multiple pages?

I need to count a guys name on
Sheet1!J10:J52 and Sheet2!J10:J52 and Sheet3!J10:J52

Thanks,
Michael
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
If your sheets are actually "Sheet1", "Sheet2" etc. you can do that like this

=SUM(COUNTIF(INDIRECT("Sheet"&{1,2,3}&"!J10:J52"),Z2))

where your name to count is in Z2
 
Upvote 0
Thank You both!
barry,
what if my sheets have names?
jeffery,
I see yours uses sheet names, I guess?
I tried yours and this doesn't work?
Code:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&Divisions&"'!J10:J52"),">0"))
I have in cells I2:I4 the Sheet names. I created a name for them called "Divisions".

Any thoughts on why it is not working? No error, just a 0 as a result.
Should I just use a countif from each sheet, since it is only 3 sheets?

Michael
 
Upvote 0
Are you counting a specific name?

If so

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Divisions&"'!J10:J52"),"Sally"))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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