Count the word "Present" on multiple spreadsheets

Manny74

Board Regular
Joined
May 6, 2016
Messages
124
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I have 3 worksheets called Doe, Jones and Smith...I am keeping track of the number of meetings each person attends...

I'd like to count the number of "Presents" across 3 worksheets for January's meeting...

So I tried COUNTIF(Doe:Smith!B3,"PRESENT") But I got a value error.....Where is the error?

I am having trouble finding the error...

BC
MEETING DATE1/7/20192/4/2019ROW 2
ATTENDANCEPRESENTPRESENTROW 3
<colgroup><col width="125" style="width: 94pt; mso-width-source: userset; mso-width-alt: 4571;"> <col width="62" style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;"> <col width="64" style="width: 48pt;" span="4"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <tbody> </tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
COUNTIF is not one the the functions that handles 3-D references. Instead, you can do something like this:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&{"Doe","Jones","Smith"}&"'!B3"),"present"))

If you put the names in (for example) A1:A3, you can make the formula more dynamic like this:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&A1:A3&"'!B3"),"present"))
 
Upvote 0
Hi Eric, Thanks!!

I understand your first recommendation, which worked!! But it makes for a long formula.

I'm not sure if I fully understand your second recommendation on making it more dynamic? (which sounds great!)
 
Upvote 0
For the second version, you save the names in a range on your sheet, not as part of the formula. So put Doe in A1, put Jones in A2, and put Smith in A3. Then you can use the second formula. If you ever need to add Parker to the list, just put Parker in A4 and change the formula to:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&A1:A4&"'!B3"),"present"))
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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