Bird
Raised Fist0
Excelspreadsheet~20 mins

COUNT and COUNTA functions in Excel - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
COUNT and COUNTA Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Counting Numbers vs Non-Empty Cells

Given the range A1:A6 contains the values: 10, "", 5, "Text", 0, TRUE.

What is the result of =COUNT(A1:A6)?

A4
B3
C5
D6
Attempts:
2 left
💡 Hint

COUNT counts only cells with numbers.

📊 Formula Result
intermediate
2:00remaining
Counting Non-Empty Cells

Given the range B1:B5 contains: "Apple", "", 25, FALSE, "Banana".

What is the result of =COUNTA(B1:B5)?

A4
B2
C5
D3
Attempts:
2 left
💡 Hint

COUNTA counts all non-empty cells, including text and logical values.

Function Choice
advanced
2:00remaining
Choosing the Right Function for Counting Text

You want to count how many cells in the range C1:C7 contain text, but ignore blanks and logical values.

A=COUNTIF(C1:C7,"*")
B=COUNTA(C1:C7)
C=COUNTIF(C1:C7, "<>")
D=COUNT(C1:C7)
Attempts:
2 left
💡 Hint

COUNT counts only numbers. COUNTA counts all non-empty cells including logical values. COUNTIF with "*" counts cells with text.

data_analysis
advanced
2:00remaining
Analyzing Mixed Data with COUNT and COUNTA

In the range D1:D8, the cells contain: 12, "", "Hello", 0, TRUE, FALSE, " ", and 7.

What is the difference between =COUNTA(D1:D8) and =COUNT(D1:D8)?

ACOUNTA returns 6; COUNT returns 3
BCOUNTA returns 8; COUNT returns 4
CCOUNTA returns 7; COUNT returns 3
DCOUNTA returns 7; COUNT returns 4
Attempts:
2 left
💡 Hint

COUNTA counts all non-empty cells including spaces and logical values. COUNT counts only numbers.

🎯 Scenario
expert
2:00remaining
Using COUNT and COUNTA in a Sales Report

You have a sales report in range E1:E10. Some cells have numbers (sales amounts), some have text notes, some are blank, and some have the logical value FALSE.

You want to find how many sales amounts were recorded (numbers) and how many entries (numbers or text) were made in total.

Which pair of formulas will correctly give these counts?

ASales count: <code>=COUNT(E1:E10)</code>, Entries count: <code>=COUNTIF(E1:E10, "<>")</code>
BSales count: <code>=COUNTA(E1:E10)</code>, Entries count: <code>=COUNT(E1:E10)</code>
CSales count: <code>=COUNTIF(E1:E10, ">0")</code>, Entries count: <code>=COUNTA(E1:E10)</code>
DSales count: <code>=COUNT(E1:E10)</code>, Entries count: <code>=COUNTA(E1:E10)</code>
Attempts:
2 left
💡 Hint

COUNT counts numbers, COUNTA counts all non-empty cells including text and logical values.

Practice

(1/5)
1. What does the COUNT function do in Excel?
easy
A. Counts only cells with numbers
B. Counts all non-empty cells
C. Counts only empty cells
D. Counts cells with text only

Solution

  1. Step 1: Understand the purpose of COUNT

    The COUNT function counts only cells that contain numbers, ignoring text or empty cells.
  2. Step 2: Compare with other options

    COUNTA counts all non-empty cells, so it is not the same as COUNT.
  3. Final Answer:

    Counts only cells with numbers -> Option A
  4. Quick Check:

    COUNT counts numbers only [OK]
Hint: COUNT counts numbers only, not text or blanks [OK]
Common Mistakes:
  • Thinking COUNT counts all non-empty cells
  • Confusing COUNT with COUNTA
  • Assuming COUNT counts text cells
2. Which of these formulas correctly counts all non-empty cells in range A1:A5?
easy
A. =COUNTA(A1:A5)
B. =COUNT(A1:A5)
C. =COUNTBLANK(A1:A5)
D. =COUNTIF(A1:A5, "*")

Solution

  1. Step 1: Identify the function that counts all non-empty cells

    COUNTA counts all cells that are not empty, including numbers, text, and errors.
  2. Step 2: Check other options

    COUNT counts only numbers, COUNTBLANK counts empty cells, COUNTIF with "*" counts cells with text but not numbers.
  3. Final Answer:

    =COUNTA(A1:A5) -> Option A
  4. Quick Check:

    COUNTA counts all non-empty cells [OK]
Hint: Use COUNTA to count all filled cells, not just numbers [OK]
Common Mistakes:
  • Using COUNT instead of COUNTA for all data
  • Confusing COUNTBLANK with COUNTA
  • Using COUNTIF("*") which misses numbers
3. Given the cells A1=10, A2="Hello", A3=, A4=5, A5="", what is the result of =COUNT(A1:A5)?
medium
A. 3
B. 1
C. 2
D. 4

Solution

  1. Step 1: Identify which cells contain numbers

    Cells A1=10 and A4=5 are numbers. A2 is text, A3 is empty, A5 is empty string (counts as empty).
  2. Step 2: COUNT counts only numbers

    So COUNT(A1:A5) counts 2 cells with numbers.
  3. Final Answer:

    2 -> Option C
  4. Quick Check:

    COUNT counts only numbers = 2 [OK]
Hint: COUNT counts only numeric cells, ignore text and blanks [OK]
Common Mistakes:
  • Counting text cells as numbers
  • Counting empty strings as non-empty
  • Confusing COUNT with COUNTA
4. You want to count all non-empty cells in B1:B6, but your formula =COUNT(B1:B6) returns 3. What is the likely problem?
medium
A. The formula syntax is incorrect
B. B1:B6 contains text and blanks, COUNT counts only numbers
C. COUNT counts empty cells by mistake
D. You need to use COUNTBLANK instead

Solution

  1. Step 1: Understand what COUNT does

    COUNT counts only numeric cells, ignoring text and blanks.
  2. Step 2: Identify why result is 3

    If B1:B6 has text or blanks, COUNT returns only the number cells, so 3 means 3 numeric cells.
  3. Final Answer:

    B1:B6 contains text and blanks, COUNT counts only numbers -> Option B
  4. Quick Check:

    COUNT counts numbers only, so text cells are ignored [OK]
Hint: Use COUNTA to count all filled cells, not COUNT [OK]
Common Mistakes:
  • Assuming COUNT counts text cells
  • Using COUNTBLANK to count filled cells
  • Thinking formula syntax is wrong
5. You have a list in C1:C8 with numbers, text, and some empty cells. Which formula counts all cells that are not empty, including numbers and text, but excludes empty cells?
hard
A. =COUNTBLANK(C1:C8)
B. =COUNT(C1:C8)
C. =COUNTIF(C1:C8, "<>")
D. =COUNTA(C1:C8)

Solution

  1. Step 1: Identify the function that counts all non-empty cells

    COUNTA counts all cells that are not empty, including numbers and text.
  2. Step 2: Check other options

    COUNT counts only numbers, COUNTIF with "<>" counts non-empty but may miss some cases, COUNTBLANK counts empty cells.
  3. Final Answer:

    =COUNTA(C1:C8) -> Option D
  4. Quick Check:

    COUNTA counts all non-empty cells [OK]
Hint: Use COUNTA to count all filled cells, numbers or text [OK]
Common Mistakes:
  • Using COUNT which misses text cells
  • Using COUNTBLANK which counts empty cells
  • Using COUNTIF("<>") which can be tricky