The CLEAN function in Excel removes all non-printable characters from text. These are invisible control characters that can cause problems when importing or exporting data, or when processing text. CLEAN is commonly used to clean up data copied from other applications or systems.