To group numbers into bands and count each band — how many scores 0–59, 60–79, 80–100 — use FREQUENCY, or a clearer COUNTIFS per bin. It’s the data behind every histogram.
The example
Test scores grouped into three bands.
| A | C | D | ||
|---|---|---|---|---|
| 1 | Score | Band | Count | |
| 2 | 55 | 0-59 | 1 | |
| 3 | 72 | 60-79 | 2 | |
| 4 | 88 | 80-100 | 2 | |
| 5 | 91 | |||
| 6 | 68 |
The formula
The COUNTIFS-per-bin approach (the clearest version):
How it works
Two ways to bin; COUNTIFS is the most readable:
- Define your bands — here 0–59, 60–79, 80–100.
- For each band, a
COUNTIFSwith a lower and upper bound counts the scores inside it:">=60"and"<=79"→2. - The alternative,
FREQUENCY(data, bins), returns all bin counts at once from a list of bin edges — but the edge logic (“up to and including”) trips people up. - COUNTIFS makes each band’s rule explicit, which is easier to read and adjust.
Excel 365: the modern way is a PivotTable or a one-formula =GROUPBY(bin, value, COUNT). For a quick chart, the built-in Histogram chart bins for you.
Try it: interactive demo
Type scores (commas); see the count in each band.
Variations
FREQUENCY for all bins at once
One spilled formula from bin edges (59, 79):
Percentage of total in each band
Divide the count by the total:
Bins from a column of edges
Point FREQUENCY at a bin-edge range:
Pitfalls & errors
FREQUENCY edges are “≤” boundaries and it returns one extra count for values above the last edge. Size the output range to bins + 1, or COUNTIFS is clearer.
Overlapping COUNTIFS bands double-count. Make bands adjacent and non-overlapping — <=79 then >=80, not <=80 then >=80.
FREQUENCY is an array formula. In older Excel, select the whole output range and press Ctrl+Shift+Enter; in 365 it spills.
Practice workbook
Frequently asked questions
How do I create a frequency distribution in Excel?
How does the FREQUENCY function work?
How do I avoid double-counting in bins?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class