Advertisements

Excel CLEAN Function

The Excel CLEAN function is used to remove all nonprintable characters from text. Excel users use CLEAN function to clean text imported from other applications that contains characters that may not print with their operating system. The excel CLEAN function, for example, is used to remove some low-level computer code that is frequently at the beginning and end of data files and cannot be printed.

List of Examples:

Advertisements

  1. What are some non-printable characters?
  2. How to remove line breaks with CLEAN?
  3. How to remove line breaks with COMMA?
  4. How to remove line breaks with space?
  5. How to generate numbers by removing non-printable characters?
  6. How to clean and remove extra space?

Excel CLEAN () Function, How to use CLEAN function in excel, how to remove nonprintable characters in excel.

Syntax

CLEAN (text)

where,

text : The text or the reference to the cell of the text from which users want to remove non-printable characters.

Example 1: What are the some non-printable characters?

Answer: Here are examples of some non-printable characters:

White spaces (considered an invisible graphic) Carriage returns Tabs Line breaks Page breaks Null Characters

Example 2: How to remove line breaks with CLEAN?

Question: I have text in one cell that are in line break format. How can I remove line breaks?

Answer: The formula is =CLEAN(C6), which returns the clean text; however, the returned texts are not separated by space or comma.

Advertisements
Excel CLEAN function to Strip non-printable characters from text, Excel CLEAN() function, How to remove line breaks in excel.

Example 3: Remove line breaks with COMMA:

Question: I have texts in one cell but they are in line break format. How can I remove line break and have the text separated by commas?

Answer: The formula is =SUBSTITUTE(C6, CHAR(10), “,”), which returns the names and separates them by commas.

Excel CLEAN function to Strip non-printable characters from text, Excel CLEAN() function, How to remove line breaks in excel and separate text with commas.

Example 4: Remove line breaks with space:

Question: I have texts in one cell but they are in line break format. How can I remove line break and have the text separated by spaces?

Answer: The formula is =SUBSTITUTE(C6, CHAR(10), ” “), which returns the text and separates them by spaces.

Excel CLEAN function to Strip non-printable characters from text, Excel CLEAN() function, How to remove line breaks in excel and separate text by commas.

Example 5: Generate numbers by removing non-printable characters:

Question: I have numbers as well as nonprintable characters in one cell. How can I generate the numbers only?

Answer: The formula is =VALUE(CLEAN(C6)), which returns numbers and removes nonprintable characters.

Excel CLEAN function to Strip non-printable characters from text, Excel CLEAN() function, How to remove line breaks in excel and separate text by commas.

Example 6: Clean and Remove extra space:

Question: How can I clean and remove extra space in text?

Answer: The formula is TRIM(CLEAN(C6)), which cleans and removes extra space.

Advertisements
Excel CLEAN function to Strip non-printable characters from text, Excel CLEAN() function, How to remove extra spaces and clean text.

More related text function:

Excel REPLACE Function

Excel SUBSTITUTE Function

Excel TRIM Function

Excel ARRAYTOTEXT Function

MS Office Post

16 Responses

  1. Aw, this was a really nice post. In concept I would like to put in writing like this additionally – taking time and precise effort to make an excellent article… but what can I say… I procrastinate alot and not at all seem to get one thing done.

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements