This Excel Tutorial demonstrates how to use the Excel CLEAN Function in Excel to remove all non-printable characters, with formula examples.
CLEAN Function Description:
The CLEAN Function Removes all non-printable characters from a cell containing text.
Syntax and Arguments:
The Syntax for the CLEAN Formula is:
Function Arguments ( Inputs ):
text – A string of text.
The CLEAN Function removes the first 32 nonprinting characters in the 7-bit ASCII code (values 0 through 31) from a string of text. <
CLEAN Examples in VBA
You can also use the CLEAN function in VBA. Type: application.worksheetfunction.clean(text)
For the function arguments (text, etc.), you can either enter them directly into the function, or define variables to use instead.
To use the AND Excel Worksheet Function, type the following into a cell: =AND(
After entering it in the cell, notice how the AND formula inputs appear below the cell:
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=CLEAN(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions: