Excel
CLEAN function in Excel
Removes all nonprintable characters from text
=CLEAN(text)CLEAN syntax and parameters
One argument, one required.
- textstringRequired
Any worksheet information from which you want to remove nonprintable characters.
CLEAN examples
Formulas you'll actually reuse.
Strip non-printing characters from text pasted out of a PDF:
=CLEAN(A2)The full cleanup: non-breaking spaces, then control characters, then extra spaces:
=TRIM(CLEAN(SUBSTITUTE(A2, CHAR(160), " ")))Result
"Maria Lopez"
CLEAN in Google Sheets
Same name — your formula ports as-is.
Try CLEAN in the playground
Edit the example — nothing to install.
Preloaded with the CLEAN formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ARRAYTOTEXTReturns an array of text values from any specified rangeTextNo Google Sheets equivalent
- CHARReturns the character specified by the code numberTextGoogle Sheets
- CODEReturns a numeric code for the first character in a text stringTextGoogle Sheets
- CONCATCombines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments.TextGoogle Sheets
- CONCATENATEJoins several text items into one text itemTextGoogle Sheets
- DETECTLANGUAGEIdentifies the language of a specified textTextGoogle Sheets