COUNTIF in Google Sheets

Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case.

In Google Sheets

COUNTIF takes the same two arguments in Google Sheets and understands the same operators and wildcards.

Syntax

COUNTIF(range, criteria)
range
The cells to count.
criteria
The condition, such as "North", ">=300", "*shoe*" or a cell.

Examples

E1=COUNTIF(A2:A6,"North")
ABCDE
1RegionProductSales3
2NorthShoes500
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180

In plain words: Count the cells in A2:A6 that say North.

E1=COUNTIF(C2:C6,">=300")
ABCDE
1RegionProductSales3
2NorthShoes500
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180

Practice COUNTIF

Related functions