Function Problems

Return and Sort the Top 10 Rows in an Excel Table

Muhammad TalhaMuhammad Talha Dec 2, 2026 869 views

Question details

Return exactly 10 records from an Excel table and sort them from highest to lowest.

Return and Sort the Top 10 Rows in an Excel Table
Product
Microsoft Excel
Device & OS
not provided
Scenario
A dynamic array formula filters table records by the tenth-largest value and should display the top 10 in descending order.
Observed behavior
The formula returns 13 rows because multiple records are tied at the tenth-largest value.
Before you start

Identify the column containing the values to rank and make sure it contains at least 10 numeric entries. For the formula below, the source is B5:E125 and the ranking values are in column C; leave enough empty cells for the results to spill.

Solution 1Recommended

Sort the filtered table and take the first 10 rows

Use a dynamic array formula to return exactly 10 rows, even when values are tied at the cutoff.

This formula filters for numeric values in column C, sorts those records by column C in descending order, and returns source columns B, C, and E. It requires an Excel version that supports FILTER, SORT, TAKE, and CHOOSECOLS.

1
Select an output cell

Click an empty cell outside B5:E125, with room for 10 rows and three columns of results.

2
Enter the formula

Enter =CHOOSECOLS(TAKE(SORT(FILTER(B5:E125,ISNUMBER(C5:C125)),2,-1),10),1,2,4) and press Enter.

3
Adjust the ranges if needed

Replace B5:E125 and C5:C125 with your table and ranking-column ranges. Keep the ranges the same height, and update the CHOOSECOLS numbers if you need different output columns.

Sort the filtered table and take the first 10 rows
How ties are handled: TAKE returns only the first 10 sorted records, so some tied records may be excluded. If you need a specific record to win a tie, add a secondary sort criterion before taking the first 10 rows.
Work with spreadsheets in WPS Office

Sort and copy the top 10 records in WPS Spreadsheet

Use WPS Spreadsheet to sort the entire table by its value column, then copy the first 10 records to a results area.

  1. 1. Open the workbook: Open WPS Spreadsheet and use File > Open to select your Excel workbook.
  2. 2. Select the source table: Select the full table, including its headers and all columns that belong to each record.
  3. 3. Sort the records: On the Data tab, open Sort, select the value column, and choose descending or largest-to-smallest order. Apply the sort to the full selection.
  4. 4. Copy the top 10: Select the first 10 data rows below the header, copy them, and paste them into an empty results area.
Sort table records from largest to smallest and select exactly 10 rowsOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet menus to work with existing filesWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does filtering for values greater than or equal to the tenth-largest value return more than 10 rows?

The filter includes every row tied at the cutoff. Sort the records first and use TAKE(...,10) to limit the output to 10 rows.

How do I sort the formula results by a different column?

Change the sort index in SORT. For the range B5:E125, use 2 for column C or 4 for column E. The FILTER condition can still use column C, but sorting by E would rank the filtered records by E rather than by C.

What happens if there are fewer than 10 numeric records?

If at least one numeric record exists, the formula returns the available rows rather than 10. If none exist, FILTER returns a calculation error unless you provide an empty-result argument.

Can I choose which tied record appears in the top 10?

Yes. Add a secondary sort criterion, such as a unique ID or date, before applying TAKE. Without one, do not rely on a particular tied record being selected.