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 Product Name in column B. You can set ranges by dragging from the start cell to the end cell in the same argument field.

Example Table

#
AProduct ID
BProduct Name
CCategory
DSales
2P001AppleFood1200
3P002BananaFood980
4P003NotebookStationery450
5P004PenStationery300
6P005GrapesFood1500
7P006RulerStationery250
8P007PeachFood860

How to Use (Formula)

=COUNTA(B2:B8)

Result

7

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.