Google Sheets
CLEAN function in Google Sheets
Returns the text with the non-printable ASCII characters removed.
=CLEAN(text)CLEAN syntax and parameters
One argument, one required.
- textstringRequired
The text whose non-printable characters are to be removed.
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 Excel
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 Google Sheets gets this done.
- ARABICComputes the value of a Roman numeral.TextExcel
- CHARConvert a number into a character according to the current Unicode table.TextExcel
- CODEReturns the numeric Unicode map value of the first character in the string provided.TextExcel
- CONCATENATEAppends strings to one another.TextExcel
- DOLLARFormats a number into the locale-specific currency format.TextExcel
- EXACTTests whether two strings are identical.TextExcel