Excel CLEAN Function

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.

Formula Examples:

clean function examples

Example Formula Result
1 =CLEAN(C5) text
2 =CLEAN(C6) text
3 =CLEAN(C7)
4 =CLEAN(C8)

Syntax and Arguments:

The Syntax for the CLEAN Formula is:

Function Arguments ( Inputs ):

text – A string of text.

Additional Notes

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:
For the function arguments (text, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the CLEAN Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
clean formula syntax
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:
how to use the clean function in excel

For more information about the CLEAN Formula visit the
Microsoft Website.

Posted in


"At Automate Excel we offer a range of free resources, software, training, and consulting to help you Excel at Excel. Contact me to learn more."

Steve Rynearson, Chief Excel Officer (CEO) at Automate Excel


I'm constantly posting new free stuff! Sign up here to receive notices.

©  2019 Spreadsheet Boot Camp LLC. All Rights Reserved.