0
0
Google Sheetsspreadsheet~20 mins

Value aggregation (SUM, COUNT, AVG) in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Aggregation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Calculate the average excluding zeros
You have numbers in cells A1 to A5: 10, 0, 20, 0, 30.
Which formula correctly calculates the average of only the non-zero numbers?
A=AVERAGEIF(A1:A5, "<>0")
B=SUM(A1:A5)/COUNTIF(A1:A5, "<>0")
C=SUM(A1:A5)/COUNT(A1:A5)
D=AVERAGE(A1:A5)
Attempts:
2 left
💡 Hint
Use a function that averages only cells meeting a condition.
📊 Formula Result
intermediate
2:00remaining
Count only numeric values
Cells B1 to B6 contain: 5, "text", 10, "", 15, TRUE.
Which formula counts only the numeric values?
A=COUNTIF(B1:B6, ">0")
B=COUNTA(B1:B6)
C=COUNT(B1:B6)
D=COUNTBLANK(B1:B6)
Attempts:
2 left
💡 Hint
Count only numbers, ignoring text and blanks.
Function Choice
advanced
2:00remaining
Sum values ignoring errors
You have numbers in C1:C5 but some cells contain errors (#DIV/0!).
Which formula sums only the valid numbers, ignoring errors?
A=SUMPRODUCT(C1:C5)
B=SUM(C1:C5)
C=SUMIF(C1:C5, ">0")
D=SUM(IFERROR(C1:C5, 0))
Attempts:
2 left
💡 Hint
Replace errors with zero before summing.
data_analysis
advanced
2:00remaining
Average with multiple conditions
In columns D and E, you have sales data and regions.
Which formula calculates the average sales in region "West" where sales are above 100?
A=AVERAGEIF(E1:E10, "West", D1:D10)
B=AVERAGEIFS(D1:D10, E1:E10, "West", D1:D10, ">100")
C=AVERAGEIF(D1:D10, ">100")
D=SUMIFS(D1:D10, E1:E10, "West", D1:D10, ">100")/COUNTIFS(E1:E10, "West", D1:D10, ">100")
Attempts:
2 left
💡 Hint
Use a function that supports multiple conditions for averaging.
🎯 Scenario
expert
2:00remaining
Dynamic count excluding blanks and errors
You want to count how many cells in F1:F20 contain valid numbers, excluding blanks and errors.
Which formula achieves this correctly?
A=SUMPRODUCT(ISNUMBER(F1:F20)*NOT(ISERROR(F1:F20)))
B=COUNTA(F1:F20)-COUNTIF(F1:F20, "#N/A")
C=COUNTIF(F1:F20, "<>"&"")
D=COUNT(F1:F20)
Attempts:
2 left
💡 Hint
Combine checks for numbers and errors using array formulas.