Return unique, distinct list in descending order, based on values in another column

mrblister

Board Regular
Joined
Nov 20, 2016
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
ABC
1NAMESCOREWANT THIS
2Cathy75Dan
3Bert50Cathy
4Cathy75Alan
5Bert50Bert
6Alan50
7Dan100

<tbody>
</tbody>

Hello all. I'm looking for a formula for C2 (copied down). The formula returns a unique distinct list (removes duplicates), in descending order of the person's score.
Notes:
  • Column A contains names, which may or may not have multiple entries in the column. The names listed don't follow any order.
  • The Score in column B is associated to the name in column A, and is always the same. So for example, Alan's score is always 50 in column B (whenever Alan's name shows up in column A).
  • It's possible 2 or more people have the exact same score.
  • It's also OK if the returned list is Dan, Cathy, Bert, Alan (as Alan and Bert have the same score)

Thanks!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this in C2:

Code:
=IFERROR(INDEX($A$2:$A$10,MATCH(LARGE(IF($A$2:$A$10<>"",IF(COUNTIF($C$1:$C1,$A$2:$A$10)=0,$B$2:$B$10)),1),IF($A$2:$A$10<>"",IF(COUNTIF($C$1:$C1,$A$2:$A$10)=0,$B$2:$B$10)),0)),"")

Confirm with Control+Shift+Enter, not just enter.
 
Upvote 0

Forum statistics

Threads
1,217,350
Messages
6,136,055
Members
449,986
Latest member
Mark39841

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top