0
0
Excelspreadsheet~20 mins

TRIM and CLEAN in Excel - 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 TRIM on a text with extra spaces?
Given cell A1 contains the text " Hello World " (with extra spaces before, between, and after words), what is the result of the formula =TRIM(A1)?
A"Hello World"
B" Hello World "
C"Hello World"
D"HelloWorld"
Attempts:
2 left
💡 Hint
TRIM removes extra spaces but keeps single spaces between words.
📊 Formula Result
intermediate
2:00remaining
What does CLEAN do to text with non-printable characters?
Cell A1 contains the text "Hello World" where is a line break (non-printable character). What is the result of =CLEAN(A1)?
A"Hello
World"
B"Hello World" (with line break)
C"Hello World"
D"HelloWorld"
Attempts:
2 left
💡 Hint
CLEAN removes non-printable characters like line breaks.
Function Choice
advanced
2:00remaining
Which formula removes both extra spaces and non-printable characters?
You have text in cell A1 that contains extra spaces and hidden line breaks. Which formula will clean the text by removing both extra spaces and non-printable characters?
A=CLEAN(TRIM(A1))
B=TRIM(A1)
C=CLEAN(A1)
D=TRIM(CLEAN(A1))
Attempts:
2 left
💡 Hint
Think about which function should run first to clean non-printable characters before trimming spaces.
📊 Formula Result
advanced
2:00remaining
What is the output of TRIM on a text with non-breaking spaces?
Cell A1 contains the text "Hello World" where   is a non-breaking space (different from normal space). What does =TRIM(A1) return?
A"Hello World"
B"Hello World"
C"HelloWorld"
D"Hello World"
Attempts:
2 left
💡 Hint
TRIM only removes ASCII space (code 32), not non-breaking spaces.
🎯 Scenario
expert
3:00remaining
Cleaning imported data with hidden characters and spaces
You imported data into Excel and notice some cells have extra spaces and hidden characters causing errors in formulas. You want to clean cell A1 so it has no extra spaces and no hidden non-printable characters. Which formula should you use?
A=TRIM(CLEAN(A1))
B=TRIM(SUBSTITUTE(CLEAN(A1), CHAR(160), " "))
C=SUBSTITUTE(TRIM(A1), CHAR(160), " ")
D=CLEAN(TRIM(A1))
Attempts:
2 left
💡 Hint
Non-breaking spaces (CHAR(160)) are not removed by TRIM or CLEAN, so you need to replace them.