FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

COUNT in Google Sheets

COUNT 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 COUNT Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Count numbers

A
1Value
210
3pending
420
5

Formula: C2: =COUNT(A2:A5)

Result: 2

Only 10 and 20 are numeric.

Count two ranges

AB
1AB
21x
323

Formula: D2: =COUNT(A2:A3,B2:B3)

Result: 3

Three of the four cells contain numbers.

Include a literal

A
1Value
21

Formula: C2: =COUNT(A2,5)

Result: 2

Both the cell and literal argument are numeric.

Try it

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

Formula in F2: =COUNT(C2:C7)

Example spreadsheet for COUNT
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.56
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 6

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