Challenge - 5 Problems
TRIM and CLEAN Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate2: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)?Attempts:
2 left
💡 Hint
TRIM removes extra spaces but keeps single spaces between words.
✗ Incorrect
The TRIM function removes all extra spaces from text except for single spaces between words. So it removes leading, trailing, and multiple spaces between words.
📊 Formula Result
intermediate2: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)?Attempts:
2 left
💡 Hint
CLEAN removes non-printable characters like line breaks.
✗ Incorrect
CLEAN removes all non-printable characters such as line breaks, so the text becomes one continuous string without breaks.
❓ Function Choice
advanced2: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?
Attempts:
2 left
💡 Hint
Think about which function should run first to clean non-printable characters before trimming spaces.
✗ Incorrect
CLEAN removes non-printable characters first, then TRIM removes extra spaces. So =TRIM(CLEAN(A1)) is the correct order.
📊 Formula Result
advanced2: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?Attempts:
2 left
💡 Hint
TRIM only removes ASCII space (code 32), not non-breaking spaces.
✗ Incorrect
TRIM removes only normal spaces (ASCII 32). Non-breaking spaces (ASCII 160) remain unchanged, so the text stays the same.
🎯 Scenario
expert3: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?
Attempts:
2 left
💡 Hint
Non-breaking spaces (CHAR(160)) are not removed by TRIM or CLEAN, so you need to replace them.
✗ Incorrect
First CLEAN removes non-printable characters, then SUBSTITUTE replaces non-breaking spaces with normal spaces, and finally TRIM removes extra spaces. This sequence cleans the text fully.