Return and Sort the Top 10 Rows in an Excel Table
Question details
Return exactly 10 records from an Excel table and sort them from highest to lowest.

- 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.
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.
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.
Click an empty cell outside B5:E125, with room for 10 rows and three columns of results.
Enter =CHOOSECOLS(TAKE(SORT(FILTER(B5:E125,ISNUMBER(C5:C125)),2,-1),10),1,2,4) and press Enter.
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 table manually and copy the first 10 records
Use this approach if your Excel version does not support the dynamic array functions or you only need a one-time result.
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. Open the workbook: Open WPS Spreadsheet and use File > Open to select your Excel workbook.
- 2. Select the source table: Select the full table, including its headers and all columns that belong to each record.
- 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. Copy the top 10: Select the first 10 data rows below the header, copy them, and paste them into an empty results area.

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.




