Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Many in one column based on the value in another column

Status
Not open for further replies.

cheryl27284

Technical User
Jan 31, 2003
28
US
In column A I have employee id's, in column B I have Yes or no. There are hundreds of records. I want to know how many "no's" each employee has. For example. Employee 114 has 100 "No's". I just want the total to appear in a table beside each employee ID. What formula do I use?
 
Assume that you have an employee ID in C3, then use this formula in D3:

=SUMPRODUCT(($A$1:$A10=C3)*($B$1:$B$10="no"))

Software: XL2002 on Win2K
Humanware: Older than dirt
 

Create a pivot table.

Put employee number as ROW,
put answer as COLUMN,
put Count of Employee as DATA
and voila.

Look up "pivot table" in the help file for more details.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top