Excel Function

COUNTA

Counts non-empty cells.

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

Arguments

value1

Required

Specify a reference range. You can drag or click start/end cells.

value2

Optional

Specify a reference range. You can drag or click start/end cells.

Practice Preview

Use COUNTA to count non-empty cells in Value in column B.

Example Table

#
AItem
BValue
CNotes
21120Number
32100Number stored as text
43Blank
5445Number
65DoneText
760Number
87Blank

How to Use (Formula)

=COUNTA(B2:B8)

Result

5

Practice This Function

COUNTA FAQ

How do I use COUNTA in Excel?

Use COUNTA when you want to count non-empty cells. Enter Value 1, Value 2 in that order, then add optional arguments when needed.

Where can I practice COUNTA?

Use the "Start Function Practice" button to jump straight into COUNTA drills.

What arguments does COUNTA use?

The main arguments are Value 1, Value 2. Start with the required ones, then add optional arguments if needed.