sarithakola
New Member
- Joined
- May 20, 2014
- Messages
- 4
Hi, here is a sample data set the result I want from the formula is in the last column Overallocated Employee;
<tbody>
[TD="class: xl63, align: right"][/TD]
</tbody>[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Employee[/TD]
[TD]COUNTIFS(B:B,B2)[/TD]
[TD]Overallocated Employee(more than 1 ID assigned.)[/TD]
[/TR]
[TR]
[TD]XMP001[/TD]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP002[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP003[/TD]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP004[/TD]
[TD]Bob[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP005[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP006[/TD]
[TD]Helen[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP007[/TD]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP008[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP009[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP010[/TD]
[TD]Dan[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP011[/TD]
[TD]Jacob[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP012[/TD]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP013[/TD]
[TD]Amanda[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP014[/TD]
[TD]Amanda[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP015[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I want the value in Overallocated Employee column to be turned to 1 any overallocated employee (i.e. employees with more than 1 IDs assigned to them), for the first occurence of overallocation. I basically want to be able to get unique count of overallocation employees. I am using COUNTIFS in third column to see how many allocation each employee has, but it repeats.
Please help with the formula to get the last column above.
Thanks,
SK
<tbody>
[TD="class: xl63, align: right"][/TD]
</tbody>
<tbody>[TR]
[TD]ID[/TD]
[TD]Employee[/TD]
[TD]COUNTIFS(B:B,B2)[/TD]
[TD]Overallocated Employee(more than 1 ID assigned.)[/TD]
[/TR]
[TR]
[TD]XMP001[/TD]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP002[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP003[/TD]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP004[/TD]
[TD]Bob[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP005[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP006[/TD]
[TD]Helen[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP007[/TD]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP008[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP009[/TD]
[TD][/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP010[/TD]
[TD]Dan[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP011[/TD]
[TD]Jacob[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP012[/TD]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP013[/TD]
[TD]Amanda[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]XMP014[/TD]
[TD]Amanda[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]XMP015[/TD]
[TD]Mary[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I want the value in Overallocated Employee column to be turned to 1 any overallocated employee (i.e. employees with more than 1 IDs assigned to them), for the first occurence of overallocation. I basically want to be able to get unique count of overallocation employees. I am using COUNTIFS in third column to see how many allocation each employee has, but it repeats.
Please help with the formula to get the last column above.
Thanks,
SK