EXCEL CLEAN FUNCTION

This method eliminates all non-printable characters from a string of text. Importing data from other databases may occasionally contain non-printable characters.

Syntax:

=CLEAN (text)

Parameter list:

  • text – the text that has to be cleaned.

Step By Step Guide of CLEAN Function

Example :

Let’s look at several instances of the Excel CLEAN function and how to utilise it as a function can be entered in Microsoft Excel:

  • The CLEAN function removes the first 32 (non-printable) characters in the 7-bit
    ASCII code (values 0 through 31) from text. Also in Unicode contains other nonprinting
    characters (values 127, 129, 141, 143, 144, and 157).
  • For example if the A2 cell has this formula =CHAR(9)&“Monthly report”&CHAR(10)
    there will be leading and trailing non-printable characters. So to remove that you can use
    the CLEAN function like this, =CLEAN(A2). Before entering the CLEAN function just
    check the length of the cell A2 using LEN function it will be 16 whereas the actual length
    should be 14, additional 2 is the non printable characters.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now