The FREQUENCY function in Google Sheets calculates how many values from a data set fall into specified numeric ranges (or "bins"), returning the results as a vertical array. It's the go-to function for building histograms and distribution summaries directly within your spreadsheet. Dive into our comprehensive guide to master its application.
Parameters
data: The array or range of values to analyze and count.classes: The array or range of bin boundaries to group the data into.
Step-by-Step Tutorial
- Calculating a frequency distribution:
- Example: If
A1:A10contains test scores andB1:B3contains the bins60, 75, 90, entering=FREQUENCY(A1:A10, B1:B3)will return an array showing how many scores fall into each bin. - Result: will return an array with one more value than the number of bins, with the last value counting anything above the highest bin.
- Example: If
Use Cases and Scenarios
- Grade Distribution: Count how many students scored within specific grade ranges.
- Histogram Building: Summarize numeric data into bins for charting.
- Inventory Analysis: Group product quantities or prices into ranges for reporting.
Related Functions
COUNTIF: Counts the number of cells that meet a specific condition.COUNTIFS: Counts cells that meet multiple conditions.LARGE: Returns the nth largest value from a data set.