Hi guys, any help on this would be appreciated =) Hope I can help others at some point too!
I am creating a count separated into 3 categories: 'Late', 'Not Late', and 'Mix'
Where exact duplicates exist I want them to be counted once in 'Late' or 'Not Late' (depending on the status of duplicate)
When a duplicate has two different statuses (i.e. Late and Not Late) I want them to be counted in 'Mix'
Unique ID's should have their statuses counted into their respective groups.
The formula I have so far for the 'late' column is:
=SUMPRODUCT(((B2:B16="late")*(C2:C16="blue"))/(COUNTIFS(A2:A16, A2:A16, B2:B16, "late", C2:C16, "blue")+((B2:B16<>"late")+(C2:C16<>"blue"))))
This is handy if there are exact duplicates, but I need it to exclude from the count all duplicates under one ID if one of the rows contains a different status.
Top left is cell A1
Result should be
Blue:
Late: 1
On Time: 1
Mixed: 1
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Status[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2341[/TD]
[TD]On Time[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]On Time[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]1212[/TD]
[TD]On Time[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1212[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]
I am creating a count separated into 3 categories: 'Late', 'Not Late', and 'Mix'
Where exact duplicates exist I want them to be counted once in 'Late' or 'Not Late' (depending on the status of duplicate)
When a duplicate has two different statuses (i.e. Late and Not Late) I want them to be counted in 'Mix'
Unique ID's should have their statuses counted into their respective groups.
The formula I have so far for the 'late' column is:
=SUMPRODUCT(((B2:B16="late")*(C2:C16="blue"))/(COUNTIFS(A2:A16, A2:A16, B2:B16, "late", C2:C16, "blue")+((B2:B16<>"late")+(C2:C16<>"blue"))))
This is handy if there are exact duplicates, but I need it to exclude from the count all duplicates under one ID if one of the rows contains a different status.
Top left is cell A1
Result should be
Blue:
Late: 1
On Time: 1
Mixed: 1
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Status[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1423[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]2341[/TD]
[TD]On Time[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]On Time[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]1212[/TD]
[TD]On Time[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1212[/TD]
[TD]Late[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD]5124[/TD]
[TD]Late[/TD]
[TD]Red[/TD]
[/TR]
</tbody>[/TABLE]