0
0
Google Sheetsspreadsheet~20 mins

COUNT and COUNTA functions in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
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: 5, "", "Text", 10, TRUE, and 0, what is the result of =COUNT(A1:A6)?

A4
B5
C3
D6
Attempts:
2 left
💡 Hint

Remember, COUNT counts only numeric values.

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

Using the same range A1:A6 with values: 5, "", "Text", 10, TRUE, and 0, what is the result of =COUNTA(A1:A6)?

A6
B4
C3
D5
Attempts:
2 left
💡 Hint

COUNTA counts all cells that are not empty, including text and logical values.

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

You want to count how many cells in range B1:B10 contain text but ignore empty cells and logical values. Which function should you use?

ACOUNTIF(B1:B10, "*")
BCOUNTA(B1:B10)
CCOUNT(B1:B10)
DCOUNTIF(B1:B10, "<>TRUE")
Attempts:
2 left
💡 Hint

Think about how to count cells with any text but exclude logical TRUE/FALSE.

🎯 Scenario
advanced
2:30remaining
Counting Non-Empty Cells Excluding Errors

You have a range C1:C8 with some cells containing numbers, text, empty cells, and error values like #DIV/0!. You want to count all non-empty cells but exclude error cells. Which formula will give the correct count?

A=SUMPRODUCT(--NOT(ISERROR(C1:C8)), --(C1:C8<>""))
B=COUNTA(C1:C8)
C=COUNT(C1:C8)
D=COUNTIF(C1:C8, "<>")
Attempts:
2 left
💡 Hint

Think about how to exclude error cells while counting non-empty cells.

data_analysis
expert
3:00remaining
Analyzing COUNT and COUNTA with Mixed Data Types

Consider the range D1:D7 with the following values: 12, "Hello", TRUE, "", 0, #N/A, FALSE. What are the results of =COUNT(D1:D7) and =COUNTA(D1:D7) respectively?

ACOUNT = 2, COUNTA = 7
BCOUNT = 2, COUNTA = 6
CCOUNT = 3, COUNTA = 7
DCOUNT = 3, COUNTA = 6
Attempts:
2 left
💡 Hint

Recall what COUNT and COUNTA count, and how errors and logical values are treated.