ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 17 · Count functions

COUNT, COUNTA and COUNTBLANK in Excel

COUNT counts the cells that hold numbers. COUNTA counts every cell that is not empty. COUNTBLANK counts the empty ones. Together they tell you what is filled in and what is missing.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Count cells with numbers
  • Count cells that are not empty
  • Count empty cells

How it works

  • COUNT counts only numbers.
  • COUNTA counts anything that is not empty, like words and numbers.
  • COUNTBLANK counts empty cells.

Formulas at a glance

=COUNT(B2:B7)numbers
=COUNTA(B2:B7)not empty
=COUNTBLANK(B2:B7)empty

Example

Write the formula to count how many Quiz 1 scores are numbers.

ABCD
1NameQuiz 1Quiz 2
2Ana89Q1 numbers
3Benabsent7Q1 filled
4Cleo9Q1 empty
5Devabsent
6Eli7Q2 numbers
7Fay108Q2 empty

Click E2 and type =COUNT(B2:B7), then press Enter.

The answer is 4.

When to use it

  • How many scores or prices are entered
  • How many names are on a list
  • How many answers are still missing

Common mistakes

  • Using COUNT on a list of namesCOUNT only counts numbers. Use COUNTA for words.
  • Counting the headerStart the range below the header row.
  • A cell with a space looks emptyCOUNTA counts it. Clear the cell instead of typing a space.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

COUNT, COUNTA and COUNTBLANK in Excel: how it works, with examples · ExcelUnpack