How to use the FREQUENCY function in Google Sheet

Introduction
Google Sheets is a powerful tool for data analysis and manipulation, and one of its most useful features is its array of built-in functions. Among these functions, the FREQUENCY function stands out as a valuable tool for analysing and summarising data sets. Whether you’re a data analyst, a student, or just someone looking to better understand your data, the FREQUENCY function can help you gain insights and make informed decisions. In this article, we will explore what the FREQUENCY function is, how it works, and how to use it effectively in Google Sheets.
Understanding the FREQUENCY Function
The FREQUENCY function is a powerful tool that allows you to calculate the frequency distribution of a range of data, which can be useful for statistical analysis and understanding the distribution of your data.
How to insert the FREQUENCY function in Google Sheets:
There are few steps to follow for inserting the ‘FREQUENCY’ function in Google sheets.
- Type “=FREQUENCY” or go to “Insert” → “Function” → “Array” → “FREQUENCY”.

Syntax
=FREQUENCY(data, classes)
- data – The array or range containing the values to be counted.
- classes – The array or range containing the set of classes.
- Classes should be sorted for clarity, but FREQUENCY will sort the values specified internally if they are not and return correct results.
Examples
Step 1: Open Your Google Sheet: Launch Google Sheets and open the spreadsheet containing the data you want to work with.

Step 2: Select a Cell and Enter the Function

Step 3: Press Enter: Hit the Enter key to apply the function. The selected array will now be displayed based on the provided conditions.

Tips for Optimization:
The FREQUENCY function in Google Sheets is used to calculate the frequency distribution of a set of data. It tells you how many values fall within specific ranges or bins. To optimise the use of the FREQUENCY function, consider the following tips:
-
Ensure that your data is organised in a single column.
-
Include appropriate headers to make it easier to understand.
- Decide on the range of values (bins) you want to use. For example, if you’re analysing test scores, your bins might be 0-10, 11-20, and so on.
- Create a separate column to define the bin ranges. For example, if you’re analysing test scores, this column might contain the values 0, 10, 20, etc.
-
Instead of using the FREQUENCY function directly, use a combination of COUNT and IF functions to count the number of values that fall within each bin. This can be more flexible and easier to manage.
-
If you’re working with a large dataset, consider using array formulas. These can perform calculations on a range of cells and may be more efficient.
-
If your data changes frequently, consider using dynamic bin ranges. You can achieve this by using formulas like MAX and MIN to dynamically determine the range of your bins.
-
Ensure that your bins don’t overlap. Each value should fall into one and only one bin.
-
Depending on your dataset, it may be beneficial to sort the data before applying the FREQUENCY function.
-
Use error handling techniques, such as IFERROR or IFNA, to deal with situations where there might be errors in your data.
-
Create a histogram or other graphical representation of your frequency distribution to make it easier to interpret.
-
Consider whether any outliers in your data may be affecting the distribution. You might want to handle outliers separately.
-
Clearly label your bins and frequency distribution so that anyone else looking at your spreadsheet can easily understand what you’ve done.
Real-World Application:
The FREQUENCY function in Google Sheets is a powerful tool that can be applied in various real-world scenarios. Here are a few examples of how it can be used:
-
Teachers can use FREQUENCY to analyse test scores. For instance, they can determine how many students fall within specific grade ranges (e.g., A, B, C, etc.).
-
Analysing survey responses. For example, you could use it to find out how many respondents fall into different age groups or income brackets.
-
Analysing sales data to see how many transactions fall into different price ranges or revenue brackets.
-
Categorising inventory items based on their value (e.g., low, medium, high) or quantity (e.g., how many items are in a certain price range).
-
Creating a frequency distribution for income levels to understand the distribution of income within a population.
-
Analysing risk levels based on factors like credit scores, insurance claims, or health metrics.
-
Analysing demographic data to see how many individuals fall into different age groups, education levels, or employment categories.
-
Determining how many projects fall into different budget ranges to make informed decisions about resource allocation.
-
Analysing product quality by categorising defects or deviations from standards.
-
Categorising tasks or activities based on the time required to complete them, helping in time optimization and scheduling.
-
Analysing customer data to group them by spending habits, purchase frequency, or other behaviours.
-
Analysing patient data to categorise them by age groups, diagnoses, or other health metrics.
-
Identifying outliers or anomalies in a dataset by visualising the frequency distribution of values.
-
Determining how many employees fall into different experience levels, skill sets, or job roles.
-
Analysing customer response rates based on demographic or behavioural segments.
Conclusion:
The FREQUENCY function in Google Sheets is a valuable tool for analysing data distributions. By using this function, you can efficiently categorise and count data points within specified ranges, providing valuable insights into the distribution patterns of your dataset. Through proper organisation of data and thoughtful selection of bins, you can tailor the function to suit a wide range of real-world applications, from grading assessments to market research and beyond.