TopicsCheat sheetLessons
Lurndo › Excel › COUNT

Learning Excel: COUNT

Counting what's there

"How many plots are actually rented out?" Ruth counts on her fingers and gets a different answer every time. Excel counts better, as long as you pick the right function.

Counting numbers

COUNT counts how many cells in a range contain a number. It doesn't add them up, it counts them.

=COUNT(D2:D11) gives 8: eight plots have a tomato harvest. The empty cells don't count.

I2
fx

=COUNT(D2:D11)

ABCDEFGHI
1PlotTenantm²Tomatoes (kg)Courgettes (kg)Beans (kg)
2P01Molly5018.409.204.508.00
3P02Karim257.902.10
4P03Annabel5021.6012.806.30
5P0425
6P05Will7530.2015.508.80
7P06Sophie256.504.10
8P07Ben5015.7010.305.20
9P08Fatima7527.9018.609.40
10P09Luke253.801.90
11P10Jodie5019.3011.105.70
12Average
13Highest
14

Counting everything, or what's empty

COUNT only counts numbers. Want to count text as well? Then use COUNTA: it counts every cell that isn't empty.

COUNTBLANK does the opposite: it counts the empty cells. =COUNTA(B2:B11) gives 9 tenants, because P04 is vacant.

I2
fx

=COUNTA(B2:B11)

ABCDEFGHI
1PlotTenantm²Tomatoes (kg)Courgettes (kg)Beans (kg)
2P01Molly5018.409.204.509.00
3P02Karim257.902.10
4P03Annabel5021.6012.806.30
5P0425
6P05Will7530.2015.508.80
7P06Sophie256.504.10
8P07Ben5015.7010.305.20
9P08Fatima7527.9018.609.40
10P09Luke253.801.90
11P10Jodie5019.3011.105.70
12Average
13Highest
14

Try it yourself

How many plots are rented out? Count the tenants in I2.

ABCDEFGHIJ
1PlotTenantm²Tomatoes (kg)Courgettes (kg)Beans (kg)
2P01Molly5018.409.204.50
3P02Karim257.902.10
4P03Annabel5021.6012.806.30
5P0425
6P05Will7530.2015.508.80
7P06Sophie256.504.10
8P07Ben5015.7010.305.20
9P08Fatima7527.9018.609.40
10P09Luke253.801.90
11P10Jodie5019.3011.105.70
12Average
13Highest
14
I2

Ready for more?

The full lesson has 5 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousThe biggest and the smallestNext →Rounding

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands