Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Counting

COUNTA

Counts the cells that aren't empty.

What it does

COUNTA counts every cell that holds something: numbers, text, dates, TRUE or FALSE, even errors. Only truly empty cells are left out.

Syntax

=COUNTA(value1; [value2]; …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ;

Arguments

value
A range or cell to look at. Add more arguments to count across several ranges.

Example

Volunteers sign up for weekday shifts. How many shifts are covered?

AB
1ShiftVolunteer
2MonAna
3Tue
4WedKai
5Thu
6FriMo
7Shifts filled3

The formula in B7:

=COUNTA(B2:B6)

Result: 3

There are names in B2, B4 and B6. Tuesday and Thursday are empty, so 3 shifts are filled.

Common mistakes

  • Cells that look empty but aren't. A space, or a formula that returns empty text (""), still counts.
  • Including the header in the range, which adds one to the count.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishCOUNTA,
DeutschANZAHL2;
FrançaisNBVAL;
Español (España)CONTARA;
Español (México)CONTARA,
日本語COUNTA,
한국어COUNTA,
繁體中文COUNTA,
ไทยCOUNTA,
ខ្មែរCOUNTA,
Tiếng ViệtCOUNTA;

Practise it

More from this module

All functions