FREQUENCY Function

Excel Functions › Statistical

All versions Statistical

The Excel FREQUENCY function counts how many values fall into each of a set of bins (intervals) — the engine behind a histogram. It returns an array of counts, one per bin plus an overflow bucket.


Quick answer:
=FREQUENCY(data_array, bins_array) counts of values in each bin

Syntax

=FREQUENCY(data_array, bins_array)
ArgumentDescription
data_arrayRequiredThe range of raw values you want to tally (e.g. test scores in A2:A30).
bins_arrayRequiredThe range of upper bin boundaries (e.g. 60, 70, 80, 90). Returns one count per bin, plus one extra count for values above the last boundary.

How to use it

FREQUENCY returns a vertical array of counts: one for each bin boundary, plus one final cell for everything above the top boundary (so n bins produce n+1 results). Each bin counts values that are greater than the previous boundary and less than or equal to the current one.

bin (≤)countmeaning
603scores up to 60
70561–70
80871–80
90681–90
(over)2above 90

In Excel 365 you simply type one formula and it spills down automatically:

=FREQUENCY(A2:A30, {60;70;80;90}) // spills 5 counts down a column

Legacy Excel: in versions before dynamic arrays you must select the whole output range first, type the formula, and confirm with Ctrl+Shift+Enter — and remember to select one more cell than you have bins, for the overflow count.

Try it: interactive demo

Live demo

Pick a FREQUENCY example to see the formula and its result.

Result:

Practice workbook

📊
Download the free FREQUENCY practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Why does FREQUENCY return one more value than I have bins?
The extra cell catches everything above the highest bin boundary. With four boundaries you get five counts: four bins plus the overflow bucket.
How are the bin edges counted?
Each bin counts values greater than the previous boundary and less than or equal to the current one. A value exactly on a boundary lands in that bin, not the next one.
Do I still need Ctrl+Shift+Enter?
In Excel 365 and 2021, no — the result spills automatically from a single cell. In Excel 2019 and earlier you must pre-select the output range and press Ctrl+Shift+Enter as an array formula.
Can I use COUNTIFS instead?
Yes — COUNTIFS with two criteria per bin (e.g. >60 and ≤70) gives the same counts and is often easier to read, though FREQUENCY is more compact for many bins.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: COUNTIFS · COUNTIF · MODE.MULT · PERCENTILE.INC · LARGE