Multiple Criteria to return count of 1 item in a column.

cjg1901

New Member
Joined
Feb 25, 2011
Messages
9
Hi

I have 2 spreadsheets relating to empoyee records etc.

Sheet 1 holds all the data on every employee. Sheet 2 contains a select few employees' details. I need to calculate their attendance at management meetings

Sheet 1:
Employee # / Date of meeting / Attended?
12345 / 10/12/2010 / Yes
23446 / 10/12/2010 / Yes
34567 / 10/12/2010 / Yes
34567 / 12/05/2010 / No
23456 / 10/12/2010 / Yes
12366 / 10/12/2010 / Yes
12366 / 05/01/2011 / No
12366 / 02/02/2011 / No
56789 / 10/12/2010 / Yes
89907 / 10/12/2010 / No

Sheet 2 hold to the data on the employees that did not attend:
Employee # / Number of times Not attended?
34567 / ?
12366 / ?

I need a formula that will automatically calculate the number of "No" entries from the "Attended?" column in sheet 1 as my spreadsheet is more complicated than my example.

Please help?

Thanks
cjg1901
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

XL2007 or later
Code:
=COUNTIFS(Sheet1!$A$2:$A$11,A2,Sheet1!$C$2:$C$11,"No")
XL2003 or earlier
Code:
=SUMPRODUCT(--(Sheet1!$A$2:$A$11=A2),--(Sheet1!$C$2:$C$11="No"))
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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