logo
search
Function Problems

How to Find the Six Most Frequent Numbers in an Excel Grid

Chanuka GeekiyanageChanuka Geekiyanage Oct 1, 2026 868 views

Question details

The user needs to extract the six most frequently occurring numbers from a grid of data.

How to Find the Six Most Frequent Numbers in an Excel Grid
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.
Before you start

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.

Solution 1Recommended

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.

1
Select an output cell

Click on the empty cell where you want the list of the six most frequent numbers to begin.

2
Enter the frequency formula

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.

3
Execute the formula

Press Enter to execute. The formula will automatically spill down to display the six numbers that appear most often in your specified range.

Use Dynamic Array Formulas to Find the Most Frequent Numbers
Dynamic Updates: As you change the numbers in the original grid (A1:F10), the top six list will automatically update to reflect the new frequencies.
Advanced Data Analysis

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. 1. Open your file: Launch WPS Spreadsheet and open the document containing your data grid.
  2. 2. Input the array formula: Select an empty cell and type the frequency array formula using LET and SORTBY.
  3. 3. Get instant results: Press Enter to instantly view your top six most frequent numbers.
Full compatibility with Microsoft Excel formulas and formatsNatively supports advanced dynamic arrays like UNIQUE, SORTBY, and TAKELightweight application that runs smoothly and efficiently on any deviceFree to use for everyday data analysis and complex reporting
microsoft office alternative - wps office

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.