Challenge - 5 Problems
Text Cleaning 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 function?
Given cell A1 contains the text: " Hello World ", what will be the result of the formula
=TRIM(A1)?Google Sheets
=TRIM(A1)
Attempts:
2 left
💡 Hint
TRIM removes extra spaces except single spaces between words.
✗ Incorrect
TRIM removes all extra spaces before, after, and between words, leaving only single spaces between words.
📊 Formula Result
intermediate2:00remaining
How does CLEAN function affect text?
If cell A2 contains the text with hidden characters: "HelloWorld", what will
=CLEAN(A2) output?Google Sheets
=CLEAN(A2)
Attempts:
2 left
💡 Hint
CLEAN removes non-printable characters.
✗ Incorrect
CLEAN removes all non-printable characters like the bell character \u0007, so the output is "HelloWorld" without that character.
❓ Function Choice
advanced2:00remaining
Which function removes all spaces including between words?
You want to remove every space from the text in cell A3, including spaces between words. Which formula should you use?
Attempts:
2 left
💡 Hint
Think about replacing spaces with nothing.
✗ Incorrect
SUBSTITUTE replaces all spaces with empty text, removing all spaces including those between words. TRIM only removes extra spaces but keeps single spaces between words.
🎯 Scenario
advanced2:00remaining
Cleaning imported data with mixed spaces and hidden characters
You imported a list of names into cell A4 with extra spaces and hidden characters. Which combination of functions will best clean the text to have single spaces only and no hidden characters?
Attempts:
2 left
💡 Hint
Think about the order: remove hidden characters first or trim spaces first?
✗ Incorrect
Using CLEAN first removes hidden characters, then TRIM removes extra spaces leaving single spaces between words. This order ensures clean and readable text.
❓ data_analysis
expert3:00remaining
Count how many cells have messy data after cleaning
You have a column A with 10 cells containing text with extra spaces and hidden characters. Which formula counts how many cells still have extra spaces after applying TRIM and CLEAN?
Attempts:
2 left
💡 Hint
You need to compare original and cleaned text for each cell and count differences.
✗ Incorrect
SUMPRODUCT with a logical test counts how many cells differ from their cleaned version. COUNTIF with arrays does not work as expected here.