How to Use Excel FREQUENCY Function with Positive and Negative Values
Question details
The user wants to know how to calculate frequency distributions for datasets containing both positive and negative numbers using Excel's FREQUENCY function.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Analyzing statistical data distribution across ranges that include numbers below and above zero.
- Observed behavior
- The user needs to correctly structure the data range and bins array so the FREQUENCY function accurately groups both positive and negative values.
Ensure your dataset is organized into a single column and sort your bins array in ascending order (from smallest negative to largest positive) for accurate results.
Use the FREQUENCY Formula in Microsoft 365 or Excel
Apply the FREQUENCY function referencing your data array and bin array to calculate the distribution of positive and negative numbers.
The FREQUENCY function calculates how often values occur within a range of values, returning a vertical array of numbers. It perfectly handles negative values as long as the bins are set up correctly from lowest to highest.
In an empty column, type your interval limits in ascending order, starting from your lowest negative limit (e.g., -10, -5, 0, 5, 10). Let's assume these values are in cells M1:M5.
Select the cell next to your first bin. In Microsoft 365, simply type =FREQUENCY(Table1[Value], M1:M5) (replace 'Table1[Value]' with your actual data range like A2:A50) and press Enter. The results will automatically spill down.
If you are using an older version of Excel that does not support dynamic arrays, select a range of adjacent blank cells that is one cell longer than your bins array, type the formula, and press Ctrl+Shift+Enter.

Analyze Distribution Using a Histogram Chart
A visual alternative to the FREQUENCY function that automatically groups positive and negative data into bins.
Calculate Data Distributions Easily with WPS Spreadsheet
WPS Spreadsheet fully supports the FREQUENCY function, dynamic arrays, and Histogram charts. It provides a lightweight, highly compatible environment to handle complex statistical calculations with both positive and negative values seamlessly.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your Excel workbook containing the positive and negative values.
- 2. Set up your bin intervals: List your intervals in ascending order (including negative numbers) in a blank column.
- 3. Apply the FREQUENCY formula: Type =FREQUENCY(Data_Range, Bin_Range) in an empty cell next to your bins and press Enter. If needed, use Ctrl+Shift+Enter for array formulas.

Frequently Asked Questions
Why is my FREQUENCY formula returning zeros for negative numbers?
This usually happens if your bins array is not sorted in ascending order. The FREQUENCY function requires bins to be sorted from the smallest number (lowest negative value) to the largest positive number. Re-sort your bins and the formula will calculate correctly.
Do I need to press Ctrl+Shift+Enter when using the FREQUENCY function?
It depends on your software version. In Microsoft 365, Excel 2021, and newer versions of WPS Office, dynamic arrays are supported, so you only need to press Enter. In older versions, FREQUENCY is an array function requiring you to pre-select the output range and press Ctrl+Shift+Enter.
How does the FREQUENCY function group exact matches to bin limits?
The FREQUENCY function includes values that are less than or equal to a bin limit. For example, if your bin limit is 0, any value exactly equal to 0 will be counted in that bin, not the next higher bin.




