Table of Contents
The process of counting the number of cells between two values in Google Sheets involves using the COUNTIF function. This function allows you to specify a range of cells and a criteria, and it will return the number of cells within that range that meet the specified criteria. By using this function, you can easily determine the number of cells between two values in a given range, providing a quick and efficient way to analyze and organize data in Google Sheets. This feature is particularly useful for data analysis and tracking progress in various projects or tasks.
Google Sheets: Count Cells Between Two Values
You can use the following basic syntax to count the number of cells between two values in Google Sheets:
=COUNTIFS(A:A,">10",A:A,"<15")
This particular formula counts the number of cells in column A that are greater than 10 or less than 15.
The following example shows how to use this syntax in practice.
Example: Count Cells Between Two Values in Google Sheets
Suppose we have the following data in Google Sheets:

We can use the following formula to count the number of cells in column B that have a value greater than 10 and less than 20:
=COUNTIFS(B:B,">10",B:B,"<20")
The following screenshot shows how to use this formula in practice:

There are 4 points values that are greater than 10 and less than 20.
We can manually count each of these four values in column B:

Note that we can also use >= and <= in the formula to count the values between 10 and 20, inclusive:
=COUNTIFS(B:B,">=10",B:B,"<=20")
The following screenshot shows how to use this formula in practice:

There are 6 points values that are greater than or equal to 10 and less than or equal to 20.
We can manually count each of these six values in column B:

Note: You can find the complete documentation for the COUNTIFS function in Google Sheets .
Additional Resources
The following tutorials explain how to perform other common COUNTIF() operations in Google Sheets:
Cite this article
stats writer (2024). How can I count the number of cells between two values in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-cells-between-two-values-in-google-sheets/
stats writer. "How can I count the number of cells between two values in Google Sheets?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-cells-between-two-values-in-google-sheets/.
stats writer. "How can I count the number of cells between two values in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-cells-between-two-values-in-google-sheets/.
stats writer (2024) 'How can I count the number of cells between two values in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-cells-between-two-values-in-google-sheets/.
[1] stats writer, "How can I count the number of cells between two values in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I count the number of cells between two values in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
