I need to write a formula that returns one count for every unique index number that either shows:
If there are duplicates: overall status = "new" but all subgroup status for that index = "finished" (like for Index 456)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Index[/TD]
[TD]overall status[/TD]
[TD]subgroup status[/TD]
[TD]Index Count[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]new[/TD]
[TD]canceled[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]new[/TD]
[TD]new[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]321[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas? My boss wants one formula, so I don't think conditional formatting will help here. I'm totally stumped on how to confirm duplicates and then run an if statement around a group of duplicates.
If there are duplicates: overall status = "new" but all subgroup status for that index = "finished" (like for Index 456)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Index[/TD]
[TD]overall status[/TD]
[TD]subgroup status[/TD]
[TD]Index Count[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]new[/TD]
[TD]canceled[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]456[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]789[/TD]
[TD]new[/TD]
[TD]new[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]321[/TD]
[TD]new[/TD]
[TD]finished[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas? My boss wants one formula, so I don't think conditional formatting will help here. I'm totally stumped on how to confirm duplicates and then run an if statement around a group of duplicates.