FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

COUNTA in Google Sheets

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

Worked examples in Google Sheets

Count filled cells

A
1Value
210
3pending
4
520

Formula: C2: =COUNTA(A2:A5)

Result: 3

10, pending, and 20 are nonempty.

Count across columns

AB
1AB
21x
33

Formula: D2: =COUNTA(A2:B3)

Result: 3

Three cells contain values.

Include literal text

A
1Value
21

Formula: C2: =COUNTA(A2,"done")

Result: 2

A direct text argument also counts.

Try it

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

Formula in F2: =COUNTA(A2:A7)

Example spreadsheet for COUNTA
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.