Return the Three Largest Values and Related Text in Excel
Question details
Return records associated with the three largest numeric values, including related text from other columns.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains numeric values and related text in adjacent columns, and the user wants to extract the highest-ranking records.
- Observed behavior
- The desired result is a set of records containing the largest values and their related text, with duplicate values handled according to the user's ranking preference.
Confirm that column A contains numeric values and columns B and C contain the related text. The formulas below require Excel with FILTER and UNIQUE support; adjust the ranges to match your data and leave enough empty cells for the results.
Return records for the three largest distinct values
Use this method when duplicate numbers should count as one ranking value.
Click an empty cell outside A2:C16 where the filtered records can spill into adjacent cells.
Enter =FILTER(A2:C16,A2:A16>=LARGE(UNIQUE(A2:A16),3)) and press Enter. Change A2:C16 and A2:A16 to match your records and numeric column.
Check the spilled result: it includes columns A through C for every row at or above the third-largest distinct value.

Count duplicate values as separate records
Use the third-largest value in the original range as the cutoff when repeated numbers should count separately.
Return three ranked records with WPS Spreadsheet
Use a helper column and lookup formulas in WPS Spreadsheet to return exactly three records with their values and related text. Tied values are ranked in their original row order.
- 1. Open your worksheet: Open the workbook in WPS Spreadsheet and confirm that values are in A2:A16 and related text is in columns B and C.
- 2. Create a ranking column: In D2, enter =RANK(A2,$A$2:$A$16,0)+COUNTIF($A$2:A2,A2)-1, then fill the formula down through D16.
- 3. Look up the top record: In E2, enter =INDEX(A$2:A$16,MATCH(ROWS($E$2:$E2),$D$2:$D$16,0)).
- 4. Return the three records: Fill E2 across through G2 and then down through row 4. The resulting table returns the top three records from columns A through C.

Frequently Asked Questions
Why does the FILTER formula return more than three rows?
The formula includes every row whose value is at or above the cutoff. If multiple rows tie at that value, all of them are returned.
How do I count duplicates as separate rankings?
Use LARGE(A2:A16,3) as the cutoff instead of LARGE(UNIQUE(A2:A16),3). Ties at the cutoff may still produce more than three rows.
Can I combine the related text into one cell?
Yes. For the three largest distinct values, enter =TEXTJOIN(", ",TRUE,FILTER(B2:B16&" "&C2:C16,A2:A16>=LARGE(UNIQUE(A2:A16),3))). This joins the related text from columns B and C.
Why does the distinct-value formula return an error?
Check that A2:A16 contains at least three distinct numeric values and that your Excel version supports FILTER and UNIQUE. Also make sure the cells where the result would spill are empty.




