Strip non-printable characters from text
=CLEAN(text)
| Parameter | Description |
|---|---|
text |
The text to clean. |
The CLEAN function accepts a text string and returns text that has been "cleaned" of line breaks and other non-printable characters. You can use CLEAN
=CLEAN(A1) // clean text in A1
CLEAN will not remove extra space characters. To remove extra space, use the TRIM function. You can use CLEAN and TRIM together in one formula like th
=TRIM(CLEAN(A1)) // clean and remove extra space
The CLEAN function removes the first 32 (non-printable) characters in the 7-bit ASCII code (values 0 through 31) from text. Unicode contains other non
=SUBSTITUTE(A1,CHAR(202),"") // remove character 202