Fix Incorrect FREQUENCY Function Results in Excel
Question details
The user needs to correct an Excel FREQUENCY formula that returns a result only for the first bin.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Counting numeric values across bins with the FREQUENCY function.
- Observed behavior
- The formula may display a result only for the first bin when it is entered or confirmed incorrectly.
Identify the numeric data range and the cells containing your bin limits. FREQUENCY returns one more result than the number of bins, so allow space for the extra count.
Enter FREQUENCY as a Spilled Array in Current Excel
Use this method in Excel versions that support dynamic arrays, such as Microsoft 365 and Excel 2021 or later.
Confirm that the data cells contain numbers and the bin cells contain the intended upper limits. For example, use A2:A11 for data and C2:C4 for three bins.
Click the first output cell, such as E2, enter =FREQUENCY(A2:A11,C2:C4), and press Enter.
Check E2:E5 for results. If Excel displays #SPILL!, clear blocking content or merged cells, or move the formula outside an Excel table.
Review the final output cell: it counts values greater than the highest bin limit.

Enter FREQUENCY as a Legacy Array Formula
Use this method in older desktop Excel versions that do not support dynamic-array spilling.
Count Values by Bin in WPS Spreadsheets
Use FREQUENCY in WPS Spreadsheets to count numeric values across bin limits and check the extra count above the highest limit.
- 1. Open the spreadsheet: Open WPS Spreadsheets and select File > Open to load your workbook.
- 2. Check the data and bins: Place or verify numeric data in A2:A11 and three bin limits in C2:C4.
- 3. Enter the formula: Select E2:E5, type =FREQUENCY(A2:A11,C2:C4) in the formula bar, and confirm the array formula. In WPS Spreadsheets for Windows, use Ctrl+Shift+Enter if your version requires legacy array entry.
- 4. Review the results: Check E2:E5 for the bin counts and the extra count above the highest bin. If your version supports spilling, you can instead enter the formula in E2 and leave E3:E5 clear.

Frequently Asked Questions
Why does FREQUENCY return one more result than the number of bins?
The extra result counts values greater than the highest bin limit. Leave one additional output cell below the bin counts.
What does a #SPILL! error mean for FREQUENCY?
Excel cannot place the full array in the output area. Clear blocking cells or merged cells, or move the formula outside an Excel table.
Does FREQUENCY count text or blank cells in the data range?
No. FREQUENCY ignores text and blank cells. Check that values you want counted are stored as numbers rather than text.
How do I edit a legacy FREQUENCY array formula?
Select the entire array output range before replacing or deleting it. After editing the formula in older Excel for Windows, confirm it with Ctrl+Shift+Enter.




