Sort Names by Score Without Duplicate Names in Excel
Question details
Sort names by score in descending order without repeating names in the results.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains names and scores, and the user wants a ranked list with each name shown once.
- Observed behavior
- Formulas using MATCH with LARGE can return the same name more than once when scores are tied or the same source record is matched repeatedly.
Check whether each name appears once or can occur on multiple rows. For the formulas below, put names in A2:A13 and numeric scores in B2:B13, with no blank names, and leave space for the results to spill.
Sort the original records when each name is unique
Use SORT to keep each name paired with its score, even when different people have the same score.
Click a blank cell outside A2:B13, such as D2.
Enter =SORT(A2:B13,2,-1) and press Enter. The second column is sorted from highest to lowest.
Review the spilled list in columns D and E. Adjust A2:B13 in the formula if your data covers a different range.

Rank unique names by their highest score
Use this formula when a name can appear on multiple rows and only its highest score should be ranked.
Rank unique names by their highest score in WPS Spreadsheets
In WPS Spreadsheets, sort the score column from highest to lowest, then remove duplicate names to keep one ranked record per person.
- 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and select the name and score columns, including their headers.
- 2. Sort scores descending: Choose Data > Sort, select the score column, and sort from largest to smallest. Keep the name and score columns selected together.
- 3. Remove duplicate names: With both columns selected, choose Data > Remove Duplicates. Select only the name column as the duplicate criterion, then confirm.
- 4. Verify the results: Review the remaining rows to confirm each name appears once with its highest score. Save the result using File > Save As if you want a separate ranked workbook.

Frequently Asked Questions
Why does MATCH return the same name for tied scores?
MATCH generally returns the position of the first matching score. If LARGE returns the same tied score again, MATCH can find that same position again. Sorting the original name-and-score range avoids this repeated lookup.
Does SORT remove duplicate names?
No. =SORT(A2:B13,2,-1) sorts all source rows. If a name appears more than once, use the unique-name aggregation formula or remove duplicates after sorting.
How can I keep the highest score for each name?
In a supported version of Excel, use UNIQUE to list names, MAXIFS to find each name's highest score, and SORT to rank the combined results. The second solution provides the complete formula.
Why does my formula show a #SPILL! error?
The results need empty cells below and to the right of the formula. Clear any obstructing cells in the intended output area, then check the formula again.




