Excel function

FREQUENCYfunction

Counts how many values fall in each band and returns the counts as a vertical array.

All versions
=FREQUENCY(A2:A11, C2:C5)
Range to drag
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11

Drag the corner dots to change data_array, bins_array. Shrink the bins range to C2:C3 and the result shrinks to 3 cells. The last cell counts values above the highest bin. Try breaking it on purpose to see the errors.

Result

{1;1;4;2;2}

data_array
A2:A11Drag a corner dot up/down to resize, sideways to change the column

The values to count. Blank cells and text are ignored.

bins_array
C2:C5

The upper limit of each band. A value up to the limit counts in that band.

What is the FREQUENCY function?

=FREQUENCY(data_array, bins_array)

FREQUENCY counts how many values fall in each band and returns the counts as a vertical array. Use it to build a frequency distribution of scores.

Write each band as its upper limit; a value up to the limit goes in that band. The result has one more cell than the bins, and the last cell counts values above the highest limit.

Arguments

data_array
The values to count. Blank cells and text are ignored.
bins_array
The upper limit of each band.

FREQUENCY examples

  1. Example 1. Score distribution

    =FREQUENCY(A2:A11, C2:C5)

    59 or less 1, 60–69 1, 70–79 4, 80–89 2, 90 and up 2: {1;1;4;2;2}.

  2. Example 2. One bin

    =FREQUENCY(A2:A11, 79)

    6 values up to 79 and 4 above: {6;4}.

Common mistakes

FAQ

How is it different from COUNTIFS?
COUNTIFS needs one formula per band; FREQUENCY counts every band at once.
What if a value equals a limit?
It counts in that band (up to and including).