0
0
Google Sheetsspreadsheet~20 mins

TRIM and CLEAN in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TRIM and CLEAN 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 this formula?
Given cell A1 contains the text: " Hello World " (with extra spaces, a non-breaking space, and a bell character), what will be the result of =TRIM(CLEAN(A1))?
A"Hello World"
B"Hello World"
C" Hello World "
D"Hello World"
Attempts:
2 left
💡 Hint
Remember CLEAN removes non-printable characters and TRIM removes extra spaces.
Function Choice
intermediate
2:00remaining
Which formula removes only extra spaces but keeps non-printable characters?
You want to remove extra spaces from text in cell B2 but keep any non-printable characters intact. Which formula should you use?
A=TRIM(B2)
B=CLEAN(B2)
C=TRIM(CLEAN(B2))
D=SUBSTITUTE(B2, CHAR(160), "")
Attempts:
2 left
💡 Hint
TRIM removes extra spaces, CLEAN removes non-printable characters.
🎯 Scenario
advanced
2:30remaining
Cleaning imported data with hidden characters
You imported data into Google Sheets and notice some cells have invisible characters causing errors in formulas. Which formula combination best cleans the text by removing both extra spaces and hidden non-printable characters?
A=CLEAN(TRIM(A2))
B=TRIM(CLEAN(A2))
C=SUBSTITUTE(TRIM(A2), CHAR(10), "")
D=TRIM(SUBSTITUTE(A2, CHAR(160), " "))
Attempts:
2 left
💡 Hint
Think about the order: CLEAN first or TRIM first?
📊 Formula Result
advanced
2:00remaining
What is the output of this formula with CHAR(160)?
Cell C3 contains the text: "Data with non-breaking spaces". What is the output of =TRIM(CLEAN(C3))?
A"Data with non-breaking spaces"
B"Datawithnon-breakingspaces"
C"Data with non-breaking spaces"
D"Data with non-breaking spaces"
Attempts:
2 left
💡 Hint
TRIM removes non-breaking spaces (CHAR(160)) as spaces. CLEAN removes non-printable characters but not CHAR(160).
data_analysis
expert
3:00remaining
How many characters remain after cleaning?
Cell D4 contains the text: " ExampleText   " (with spaces, a non-printable character CHAR(3)). After applying =LEN(TRIM(CLEAN(D4))), how many characters will the result have?
A15
B13
C17
D11
Attempts:
2 left
💡 Hint
Count characters after removing non-printable and extra spaces.