Function Problems

Return the Three Largest Values and Related Text in Excel

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 868 views

Question details

Return records associated with the three largest numeric values, including related text from other columns.

Return the Three Largest Values and Related Text in Excel
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.
Before you start

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.

Solution 1Recommended

Return records for the three largest distinct values

Use this method when duplicate numbers should count as one ranking value.

1
Select an empty cell

Click an empty cell outside A2:C16 where the filtered records can spill into adjacent cells.

2
Enter the formula

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.

3
Review the returned records

Check the spilled result: it includes columns A through C for every row at or above the third-largest distinct value.

Return records for the three largest distinct values
Duplicates and data requirements: The numeric range must contain at least three distinct numbers. Ties can produce more than three rows, and FILTER preserves the original row order rather than sorting by value.
Find top records in WPS Spreadsheet

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. 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. 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. 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. 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.
Return exactly three records, including their related textOpen and edit Microsoft Excel XLSX and XLS filesWork with familiar spreadsheet formulas and a familiar interfaceUse WPS Office for free
microsoft office alternative - wps office

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.