jag4
asked on
Count using 2 variables
I have 3 columns -
A: employee name
B: employee boss name
C: employee type (contractor, employee, part-time)
I would like to find the number of employee's under each boss who are contractor, for example. How?
A: employee name
B: employee boss name
C: employee type (contractor, employee, part-time)
I would like to find the number of employee's under each boss who are contractor, for example. How?
The easiest way is to do a pivot table if you know how to do it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are using Excel 2007 or 2010 the easiest way is to use COUNTIFS function. It let's you count by more conditions at once. Works like a charm and is very easy to use. Try it...
The formula you need is:
=SUMPRODUCT((B$1:B$13="Bos s1")*(C$1: C$13="cont ractor"))
Changing the boss name and contractor to whatever you need. Change the cell number to the end too.
But i agree a pivot table in the long run would be better is changes are going to be made
=SUMPRODUCT((B$1:B$13="Bos
Changing the boss name and contractor to whatever you need. Change the cell number to the end too.
But i agree a pivot table in the long run would be better is changes are going to be made
ASKER
Thanks for this answer - easiest to follow compared to the others and it allowed me to see what I needed to do.
Leon