0
0
Google Sheetsspreadsheet~20 mins

LEN function in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
LEN Function Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What is the output of LEN with spaces?
Given cell A1 contains the text " Hello World " (with spaces at start and end), what will =LEN(A1) return?
A13
B10
C11
D12
Attempts:
2 left
💡 Hint
Remember LEN counts all characters including spaces.
📊 Formula Result
intermediate
2:00remaining
LEN function with numbers stored as text
If cell B2 contains the text "12345" (a number stored as text), what does =LEN(B2) return?
AError
B12345
C1
D5
Attempts:
2 left
💡 Hint
LEN counts characters, not numeric value.
Function Choice
advanced
2:00remaining
Which formula counts characters excluding spaces?
You want to count the number of characters in cell C3 but exclude all spaces. Which formula will do this correctly?
A=LEN(SUBSTITUTE(C3," ",""))
B=LEN(C3)-LEN(SUBSTITUTE(C3," ",""))
C=LEN(C3)+LEN(SUBSTITUTE(C3," ",""))
D=LEN(C3)*LEN(SUBSTITUTE(C3," ",""))
Attempts:
2 left
💡 Hint
SUBSTITUTE removes spaces, then LEN counts remaining characters.
🎯 Scenario
advanced
2:00remaining
Find the length of trimmed text
Cell D4 contains text with extra spaces at start and end. You want to find the length of the text without these extra spaces. Which formula gives the correct length?
A=LEN(D4)
B=LEN(TRIM(D4))
C=LEN(SUBSTITUTE(D4," ",""))
D=LEN(D4)-2
Attempts:
2 left
💡 Hint
TRIM removes extra spaces at start and end.
data_analysis
expert
3:00remaining
Count how many cells have text length greater than 5
You have a list of names in cells A1:A10. Which formula correctly counts how many names have more than 5 characters?
A=COUNT(LEN(A1:A10)>5)
B=COUNTIF(LEN(A1:A10),">5")
C=SUMPRODUCT(--(LEN(A1:A10)>5))
D=COUNTIF(A1:A10,">5")
Attempts:
2 left
💡 Hint
LEN does not work directly inside COUNTIF for ranges.