DCunningham
New member
- Joined
- Oct 1, 2015
- Messages
- 4
- Reaction score
- 0
- Points
- 0
Hello everyone,
I have a rather complex problem. I am dealing with a spreadsheet that looks like the following, except much much larger (names are fictional) :
Col.A Col.K
Name Manager
Bill Will
Joe Sara
Frank Sara
Joe Sara
David Will
David Wll
Frank Sara
The first thing I needed was to count how many employees there were in total, making sure that names were not double counted (there is only 1 Bill, 1 Joe, 1 Frank and 1 David). The only way i could find to do this was:
=SUMPRODUCT((sheet1!A2:A499<>"")/COUNTIF(sheet1!A2:A499, sheet1!A2:A499&""))
Now what I need to do is adapt this formula so that it still counts names of employees once but also only counts employees under a certain manger. For example, i need a formula that will tell me Sara has 2 employees (Joe & Frank) and not 4 (2 for Joe and 2 for Frank).
I hope that makes sense to someone
I have a rather complex problem. I am dealing with a spreadsheet that looks like the following, except much much larger (names are fictional) :
Col.A Col.K
Name Manager
Bill Will
Joe Sara
Frank Sara
Joe Sara
David Will
David Wll
Frank Sara
The first thing I needed was to count how many employees there were in total, making sure that names were not double counted (there is only 1 Bill, 1 Joe, 1 Frank and 1 David). The only way i could find to do this was:
=SUMPRODUCT((sheet1!A2:A499<>"")/COUNTIF(sheet1!A2:A499, sheet1!A2:A499&""))
Now what I need to do is adapt this formula so that it still counts names of employees once but also only counts employees under a certain manger. For example, i need a formula that will tell me Sara has 2 employees (Joe & Frank) and not 4 (2 for Joe and 2 for Frank).
I hope that makes sense to someone