Google Sheets CLEAN Function

This post will guide you how to use Google Sheets CLEAN function with syntax and examples.

Description


The Google Sheets CLEAN function removes all non-printable characters from a text string.

The CLEAN function can be used to take a text string and returns text that has been removed all other non-printable characters, such as line breaks.

The CLEAN function is a build-in function in Google Sheets and it is categorized as a Text Function.

Syntax


The syntax of the CLEAN function is as below:

= CLEAN (text)

Where the CLEAN function argument is:

Text   – This is a required argument. The text strings that you want to remove all nonprintable characters

Note:

  • You need to know that the CLEAN function only can be used to remove non-printable ASCII characters.
  • Non-printable Unicode characters that are not found in the ASCII table will not be removed in google sheets.
  • Compared to Excel, Google Sheets does not show any non-printable characters, so it will not display any visible changes while using this function in google sheets.
  • The CLEAN function only accept one argument, text, which can be a text string or a numeric value. It removes the first 32 non-printable characters in the ASCII code.

Google Sheets CLEAN Function Example


#1 To remove all vertical tab characters from text string in A1-A3 cells, just using CLEAN(A1), CLEAN(A2), CLEAN(A3) formulas.

google sheets clean function

google sheets clean function

#2 return printable ASCII Character

The double quotes character or space character are not included to non-printable ASCII characters, so the CLEAN function does not remove those characters in a text string in google sheets:

=CLEAN(CHAR(34)&“clean function”)

google sheets clean function

Note: the CLEAN function can not be used to remove extra space characters in a text string in google sheets, and if you wish to remove extra space, and you need to use the TRIM function. And you can use the CLEAN function in combination with the TRIM function in one formula in your sheet.

Related Functions


  • Google Sheets CHAR function
    The Google Sheets CHAR function returns the character specified by a number (ASCII Value) according to the current Unicode table. The syntax of the CHAR function is as below:=CHAR(number)….
Related Posts

Google Sheets LN Function
google sheets LN function1

This post will guide you how to use Google Sheets LN function with syntax and examples. Description The Google Sheets LN function returns the natural logarithm of a given number.  And the natural logarithms are based on the constant e ...

Google Sheets INT Function
google sheets int function1

This post will guide you how to use Google Sheets INT function with syntax and examples. Description The Google Sheets INT function returns the integer portion of a given number. And it will round a given number down to the ...

Google Sheets FLOOR Function
google sheets floor function1

This post will guide you how to use Google Sheets FLOOR function with syntax and examples. Description The Google Sheets FLOOR function returns a number rounded down to the nearest multiple of significance. So it will return a rounded number. ...

Google Sheets EXP Function
google sheets exp function1

This post will guide you how to use Google Sheets EXP function with syntax and examples. Description The Google Sheets EXP function returns e raised to the power of a number.  The constant e is equal to 2.71828182845904, and it ...

Google Sheets FACT Function
google sheets FACT function1

This post will guide you how to use Google Sheets FACT function with syntax and examples. Description The Google Sheets FACT function returns the factorial of a given number.  The factorial of a given number is equal to 1*2*3…* number. ...

Google Sheets EVEN Function
google sheets even function1

This post will guide you how to use Google Sheets EVEN function with syntax and examples. Description The Google Sheets EVEN function rounds a given number up to the nearest even integer. You can use the EVEN function to return ...

Google Sheets COUNTBLANK Function
google sheets countblank function1

This post will guide you how to use Google Sheets COUNTBLANK function with syntax and examples. Description The Google Sheets COUNTBLANK function use to count the number of empty cells in a range of cells. You can use the COUNTBLANK ...

Google Sheets DEGREES Function
google sheets degrees function1

This post will guide you how to use Google Sheets DEGREES function with syntax and examples. Description The Google Sheets DEGREES function converts radians into degrees. And it will return a numeric value. For examples, if you pass the PI() function into ...

Google Sheets COSH Function
google sheets cosh function1

This post will guide you how to use Google Sheets COSH function with syntax and examples. Description The Google Sheets COSH function returns the hyperbolic cosine of a given angle. The purpose of this function is used to get hyperbolic ...

Google Sheets COS Function
google sheets cos function1

This post will guide you how to use Google Sheets COS function with syntax and examples. Description The Google Sheets COS function returns the cosine of a given angle. If you want to supply an angle to COS function in ...

Sidebar