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
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}.
Example 2. One bin
=FREQUENCY(A2:A11, 79)6 values up to 79 and 4 above: {6;4}.
Common mistakes
Making the result only as tall as the bins
In older Excel, selecting only as many result cells as bins drops the last count (above the highest limit).
Writing lower limits
Bins are upper limits. To count 60–69, write 69.
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).