
TextLevel: IntermediateAvailable in: Excel 2007+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Common errors and fixes
- Related functions
CLEAN removes invisible control characters (like line breaks from system exports) that break lookups and look like spaces.
Syntax
=CLEAN(text)
| Argument |
What it means |
text |
Text to clean. |
Examples
Example 1
=TRIM(CLEAN(A2))
The standard clean-up for pasted data.
Example 2
=SUBSTITUTE(A2, CHAR(10), ", ")
Keep the content but turn line breaks into commas.
Common errors and fixes
| You see |
Why, and the fix |
Still does not match |
Non-breaking spaces (CHAR 160) are printable — replace them with SUBSTITUTE(A2,CHAR(160),” “). |
TRIM · SUBSTITUTE · CHAR
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong