Function Problems

How to Use Excel FREQUENCY Function with Positive and Negative Values

Olivia MillerOlivia Miller Oct 29, 2026 868 views

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.

How to Use Excel FREQUENCY Function with Positive and Negative Values
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.
Before you start

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.

Solution 1Recommended

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.

1
Set up your Bins Array

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.

2
Enter the FREQUENCY function

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.

3
Handle Legacy Excel versions

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.

Use the FREQUENCY Formula in Microsoft 365 or Excel
Understanding the extra bin: The FREQUENCY function always returns an array with one more item than the bins array. This extra number represents the count of any values greater than the highest interval in your bins.
Powerful Spreadsheet Tool

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. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your Excel workbook containing the positive and negative values.
  2. 2. Set up your bin intervals: List your intervals in ascending order (including negative numbers) in a blank column.
  3. 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.
100% compatible with Microsoft Excel formulas and formats (.xlsx, .xls, .csv)Fully supports statistical functions like FREQUENCY for positive and negative valuesBuilt-in charting tools to visualize data distributions instantlyFree, lightweight, and fast to load on any device
microsoft office alternative - wps office

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.