How to Find the Six Most Frequent Numbers in an Excel Grid
Question details
The user needs to extract the six most frequently occurring numbers from a grid of data.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing a multi-column data range to identify the values with the highest occurrence frequency, distinguishing this action from simply sorting values by their numeric size.
- Observed behavior
- The user wants a formula-based approach to count numbers by frequency and return the top six unique frequent numbers from a specific range.
Ensure your version of Excel or WPS Spreadsheet supports dynamic array functions such as UNIQUE, SORTBY, and TAKE, as these are required for advanced frequency calculations.
Use Dynamic Array Formulas to Find the Most Frequent Numbers
Combine the LET, TOCOL, UNIQUE, SORTBY, and COUNTIF functions to dynamically extract and rank numbers based on their occurrence frequency.
This method evaluates the entire grid, counts how many times each unique number appears, and ranks them from highest frequency to lowest. It then extracts exactly the top six results.
Click on the empty cell where you want the list of the six most frequent numbers to begin.
Type the formula =LET(v, TOCOL(A1:F10), u, UNIQUE(v), TAKE(SORTBY(u, COUNTIF(v, u), -1), 6)) into the formula bar. Be sure to replace A1:F10 with the actual range of your data grid.
Press Enter to execute. The formula will automatically spill down to display the six numbers that appear most often in your specified range.

Find the Six Largest Values Instead of Most Frequent
If you meant to find the highest numerical values rather than the ones that appear most often, use the SORT and TAKE functions.
Easily Find Frequent Numbers with WPS Spreadsheet
WPS Spreadsheet fully supports modern dynamic array formulas, making it incredibly easy to extract the most frequent or largest values from any data grid. It provides a lightweight, highly compatible environment for all your advanced data analysis needs.
- 1. Open your file: Launch WPS Spreadsheet and open the document containing your data grid.
- 2. Input the array formula: Select an empty cell and type the frequency array formula using LET and SORTBY.
- 3. Get instant results: Press Enter to instantly view your top six most frequent numbers.

Frequently Asked Questions
How do I find just the single most frequent number in a range?
If you only need the number that appears most often (the mode), you can use the traditional MODE.SNGL function. Simply enter =MODE.SNGL(A1:F10) in an empty cell and press Enter.
Why does the formula return a #NAME? error?
A #NAME? error typically means your spreadsheet software does not recognize one of the functions used, such as LET, TOCOL, or TAKE. This usually happens if you are using an older version of Excel that does not support dynamic array functions.
Why am I getting a #SPILL! error?
A #SPILL! error occurs when the dynamic array formula does not have enough blank cells below it to display all six results. Clear the cells directly below your formula so the results can spill out properly.
Can I find the most frequent text values instead of numbers?
Yes, the dynamic array formula using LET, UNIQUE, SORTBY, and COUNTIF works flawlessly for text strings as well. It will evaluate the frequency of text entries in the grid exactly the same way it evaluates numbers.




