Category: FUNCTION | Updated: 2026-11-22

How to Use the FREQUENCY Function in Google Sheets

Syntax

=FREQUENCY(data, classes)
  • data: The array or cell range containing the numeric values to count.
  • classes: The array or cell range containing the boundary values (upper limits) for each interval.

Example

Count how many test scores (A2:A7) fall into each threshold (C2:C4). Enter =FREQUENCY(A2:A7, C2:C4) in cell D2.

Column A (Score) Column B Column C (Threshold) Column D (Count / Result)
Row 1 Score Threshold (or less) Count
Row 2 45 50 1
Row 3 72 70 2
Row 4 88 90 2
Row 5 60 (Over 90 bin) 1
Row 6 95
Row 7 70

Common Errors and Notes

  • Handling Blanks and Text: Blank cells and text strings in the data range are ignored, and the classes (threshold) range should generally be sorted in ascending order.
  • Leave Room for Spill Output: Because the output has “number of class cells + 1 row”, make sure there is an extra empty cell below the last class row.

Frequently Asked Questions

Q. Why does FREQUENCY return one more row than the number of classes?

A. An extra row is automatically added at the bottom to count values greater than the highest specified class (values exceeding the upper limit).

Q. Which group does a boundary value (e.g., 60 points) get counted in?

A. Boundary values are treated as "less than or equal to", so an exact score of 60 is counted in the "60 or less" interval.