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

x
How to Unmerge Cells and Fill Down Values in Excel

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 PROPER Function
google sheets proper function1

This post will guide you how to use Google Sheets PROPER function with syntax and examples. Description The Google Sheets PROPER function capitalizes the first character in each word of a text string and set other characters to lowercase . ...

Google Sheets MIDB Function
google sheets midb function1

This post will guide you how to use Google Sheets MIDB function with syntax and examples. Description The Google Sheets MIDB function returns a substring (a specified number of bytes) starting from the middle of a text string and up ...

Google Sheets MID Function
google sheets mid function

This post will guide you how to use Google Sheets MID function with syntax and examples. Description The Google Sheets MID function returns a substring (a specified number of the characters) starting from the middle of a text string. The ...

Google Sheets LOWER Function
google sheets lower function1

This post will guide you how to use Google Sheets LOWER function with syntax and examples. Description The Google Sheets LOWER function converts all characters in a text string to lowercase. The LOWER function can be used to convert a ...

Google Sheets LENB Function
google sheets lenb function1

This post will guide you how to use Google Sheets LENB function with syntax and examples. Description The Google Sheets LENB function returns the length of a text string in bytes. The LENB function can be used to count the ...

Google Sheets LEN Function
Google sheets len function1

This post will guide you how to use Google Sheets LEN function with syntax and examples. Description The Google Sheets LEN function returns the length of a text string (the number of characters in a text string). The LEN function ...

Google Sheets LEFTB Function
google sheets leftb function

This post will guide you how to use Google Sheets LEFTB function with syntax and examples. Description The Google Sheets LEFTB function returns a substring (a specified number of the bytes) from a text string, starting from the left portion. ...

Google Sheets LEFT Function
google sheets left function

This post will guide you how to use Google Sheets LEFT function with syntax and examples. Description The Google Sheets LEFT function returns a substring (a specified number of the characters) from a text string, starting from the leftmost character. ...

Google Sheets JOIN Function
Google sheets join function

This post will guide you how to use Google Sheets JOIN function with syntax and examples. Description The Google Sheets JOIN function joins two or more text strings together and separated by a delimiter. you can select an entire range ...

Google Sheets FIXED Function
google sheets fixed function1

This post will guide you how to use Google Sheets FIXED function with syntax and examples. Description The Google Sheets FIXED function rounds a number to the specified number of decimal places and returns the result as text string and ...

Sidebar