# COUNTA in Google Sheets: syntax and examples

URL: https://goingstellar.ro/reference/sheets/counta/

COUNTA counts the cells that contain anything at all. Use it to see how many rows are filled in, or how many are missing, in a column.

## Syntax

```
COUNTA(value1, [value2, ...])
```

## Arguments

- `value1` (any, required: yes): The first value or range to count. Any non-empty cell counts, whatever it holds.
- `value2` (any, required: no): More values or ranges, added to the same count.

## Examples

The examples use this table, starting in A1:

| Name | Email | Phone | Note |
|---|---|---|---|
| Ana | ana@example.com | 0722 | ok |
| Bogdan |  | 0733 |  |
| Carmen | carmen@example.com |  | ok |
| Dan | dan@example.com | 0744 | ok |

```
=COUNTA(A2:A5)
```

Result: `4`

Counts the filled cells in the name column. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=COUNTA(B2:B5)
```

Result: `3`

One email is missing, so the count is 3 and not 4. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=COUNTA(A2:D5)
```

Result: `13`

A whole block: every non-empty cell across all four columns. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=COUNTA(B2:B5, D2:D5)
```

Result: `6`

Two ranges in one call. The counts are added together. Run in a Google Sheet (English US locale) on 2026-11-29.

```
=ROWS(A2:A5)-COUNTA(B2:B5)
```

Result: `1`

Missing values: total rows minus filled cells. Run in a Google Sheet (English US locale) on 2026-11-29.

## Common errors

- A cell with a formula that returns an empty string ("") still counts, because the cell is not empty. A visible blank can raise the total.
- 0 and FALSE are counted. Only truly empty cells are skipped.
- COUNTA is not COUNT. COUNT counts numbers only, so on a column of emails it returns 0.

## Compared with Excel

Same syntax as Excel COUNTA.

## Related functions

- [COUNT](https://goingstellar.ro/reference/sheets/count/)
- [COUNTIF](https://goingstellar.ro/reference/sheets/countif/)

## Sources

- [COUNTA (Docs Editors Help)](https://support.google.com/docs/answer/3093991)

