Table of Contents
The COUNTIF function in Google Sheets is a powerful tool that allows you to count the number of cells within a range that meet a certain criteria. Its main purpose is to help you quickly and easily analyze data by providing a count of cells that meet specific conditions. To use the COUNTIF function, you simply need to specify the range of cells and the criteria you want to count. This can be done by using logical operators such as “>,
Google Sheets COUNTIF Function
COUNTIF Function
The COUNTIF function is a premade function in Google Sheets, which counts cells that match a specified condition.
It is typed =COUNTIF and has two parts:
=COUNTIF(range, criterion)The condition is referred to as criterion, which can check things like:
- If a number is greater than another number
> - If a number is smaller than another number
< - If a number or text is equal to something
=
Countif Function Example
Apply the COUNTIF function to range B2:B21, to count how many Pokemons there are of Fighting, Water and Grass types:

COUNTIF function, step by step:
- Select the cell
G4 - Type
=COUNTIF - Click the COUNTIF command

- Specify the range
B2:B21for the Type 1 values - Type
, - Specify the criteria (the cell
F4, which as the value “Fighting”) - Hit enter

The function now counts the number of Fighting type Pokemon.
The function can be repeated for Water and Grass type Pokemon compare them:

Note: You can use the filling function for the other rows, but make sure to use absolute references for the ranges.
Now, we can see the number of Fighting, Water and Grass type Pokemon from this list:

Cite this article
stats writer (2024). how do you use the COUNTIF function in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/what-is-the-purpose-and-how-do-you-use-the-countif-function-in-google-sheets/
stats writer. "how do you use the COUNTIF function in Google Sheets?." PSYCHOLOGICAL SCALES, 29 Jun. 2024, https://scales.arabpsychology.com/stats/what-is-the-purpose-and-how-do-you-use-the-countif-function-in-google-sheets/.
stats writer. "how do you use the COUNTIF function in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/what-is-the-purpose-and-how-do-you-use-the-countif-function-in-google-sheets/.
stats writer (2024) 'how do you use the COUNTIF function in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/what-is-the-purpose-and-how-do-you-use-the-countif-function-in-google-sheets/.
[1] stats writer, "how do you use the COUNTIF function in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. how do you use the COUNTIF function in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
