In A1 i have:
=INDEX(D2:D6,MATCH(LARGE(E2:E6,C2,E2:E6,FALSE))
This formula returns the top most valuable customer (dog). But there is a tie for second place (cat and amy) but it returns Amy Twice. How do i fix this? Ty
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Waffle[/TD]
[TD]90[/TD]
[TD]1[/TD]
[TD]Dog[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]Amy[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]Cat[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Amy[/TD]
[TD]50[/TD]
[TD]3[/TD]
[TD]Amy[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]30[/TD]
[TD]4[/TD]
[TD]Stick[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Stick[/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Waffle[/TD]
[TD]90[/TD]
[/TR]
</tbody>[/TABLE]
=INDEX(D2:D6,MATCH(LARGE(E2:E6,C2,E2:E6,FALSE))
This formula returns the top most valuable customer (dog). But there is a tie for second place (cat and amy) but it returns Amy Twice. How do i fix this? Ty
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Waffle[/TD]
[TD]90[/TD]
[TD]1[/TD]
[TD]Dog[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]Amy[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]Cat[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Amy[/TD]
[TD]50[/TD]
[TD]3[/TD]
[TD]Amy[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]30[/TD]
[TD]4[/TD]
[TD]Stick[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Stick[/TD]
[TD][/TD]
[TD]5[/TD]
[TD]Waffle[/TD]
[TD]90[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: