FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

COUNTIFS in Google Sheets

COUNTIFS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the COUNTIFS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Region and amount

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =COUNTIFS(A2:A7,"East",C2:C7,">500")

Result: 2

East rows above 500: 1200 and 610.

Region and rep

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =COUNTIFS(A2:A7,"East",B2:B7,"Ana")

Result: 2

Ana has two East rows.

Between two values

ABC
1RegionRepAmount
2EastAna1200
3WestBen850
4EastCara430
5NorthDan970
6WestEli1500
7EastAna610

Formula: E2: =COUNTIFS(C2:C7,">500",C2:C7,"<1000")

Result: 3

Amounts over 500 and under 1000: 850, 970 and 610.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =COUNTIFS(A2:A7,"East",C2:C7,">20")

Example spreadsheet for COUNTIFS
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.52
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 2
Practice this in a lesson: Multiple Conditions

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.