juanma2550
New Member
- Joined
- Nov 16, 2014
- Messages
- 2
Hello!
I have some doubts about how to calculate this results.
Without using a pivot table, I need to know how many employees each manager has. For example: If I enter the name: "Zara" on the cell G1 I'll need to get the number 5 on the cell H1, because Zara has 5 employees even though there are 10 rows if you filter by the Manager Zara.
Note that there are some employees with the same name, like "John" but there are two different Johns, one is a Zara's employee, and the other one is Louise's employee, and also the ID is different.
So, basically I need a formula that calculates how many employees have each manager without counting the duplicates and keeping in mind there are some employees with the same name but different manager. I really do not know how to do that.
Please help!!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="width: 70, align: center"]Employee
[/TD]
[TD="width: 63, align: center"]Manager[/TD]
[TD="width: 42, align: center"]ID[/TD]
[TD="width: 76, align: center"]Day[/TD]
[TD="width: 43, align: center"]Starts[/TD]
[TD="width: 46, align: center"]Leave[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]69985[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]69985[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]45896[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]45896[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]65471[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Steve[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]23698[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Steve[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]23698[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]44589[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]44779[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]44589[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]14589[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]14589[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]97879[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]45897[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]45897[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]99866[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Ralph[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]87898[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Ralph[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]64796[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much!!ray:
I have some doubts about how to calculate this results.
Without using a pivot table, I need to know how many employees each manager has. For example: If I enter the name: "Zara" on the cell G1 I'll need to get the number 5 on the cell H1, because Zara has 5 employees even though there are 10 rows if you filter by the Manager Zara.
Note that there are some employees with the same name, like "John" but there are two different Johns, one is a Zara's employee, and the other one is Louise's employee, and also the ID is different.
So, basically I need a formula that calculates how many employees have each manager without counting the duplicates and keeping in mind there are some employees with the same name but different manager. I really do not know how to do that.
Please help!!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="width: 70, align: center"]Employee
[/TD]
[TD="width: 63, align: center"]Manager[/TD]
[TD="width: 42, align: center"]ID[/TD]
[TD="width: 76, align: center"]Day[/TD]
[TD="width: 43, align: center"]Starts[/TD]
[TD="width: 46, align: center"]Leave[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]69985[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]69985[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]45896[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]45896[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]David[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]65471[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Steve[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]23698[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Steve[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]23698[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]44589[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]44779[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]44589[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]14589[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]14589[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]97879[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]45897[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Martin[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]45897[/TD]
[TD="align: center"]Friday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Saturday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]65896[/TD]
[TD="align: center"]Sunday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Louise[/TD]
[TD="align: center"]25368[/TD]
[TD="align: center"]Monday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]John[/TD]
[TD="align: center"]Alex[/TD]
[TD="align: center"]99866[/TD]
[TD="align: center"]Tuesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Ralph[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]87898[/TD]
[TD="align: center"]Wednesday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
[TR]
[TD="align: center"]Ralph[/TD]
[TD="align: center"]Zara[/TD]
[TD="align: center"]64796[/TD]
[TD="align: center"]Thursday[/TD]
[TD="align: center"]09:00[/TD]
[TD="align: center"]17:00[/TD]
[/TR]
</tbody>[/TABLE]
Thank you very much!!ray: