EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Excel Excel Resources TEXT and String Functions in Excel Excel CLEAN Function
 

Excel CLEAN Function

Jeevan A Y
Article byJeevan A Y
Madhuri Thakur
Reviewed byMadhuri Thakur

Updated May 30, 2023

CLEAN function in excel

 

 

CLEAN in Excel

The clean function in Excel is used for cleaning the text. The clean function cleans the text line from start to end and eliminates the line breaks and the non-printable characters. This function helps if we use large lines of text and words where we see such different characters that we may not print, or we may face cases of getting non-printable characters and extra line breaks when we copy the text of some web pages.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

CLEAN Function (non-printable characters)

We can use a CLEAN function in Excel to remove all non-printable characters. Excel CLEAN function can remove the first 32 7-bit ASCII code characters from the text. First 32 characters. These characters are found at the start of the data imported into Excel from other web applications. There are 37 7-bit ASCll code characters, out of which the CLEAN function can clean the first 32 characters.

The remaining character values are 127, 129, 141, 143, 144 and 157. The CLEAN function cannot remove the characters generated by these codes. A CLEAN function can be applied to text, strings, numbers, etc.…. We need to notice that when a CLEAN function is applied to numbers, it automatically converts them to text format.

People in data-driven jobs frequently utilize CLEAN when working with research and development data. The marketing team uses the data to send campaigns and write content for their campaign. While writing the content for the campaign, they research more on the internet and copy directly from the web browsers, and they copy special characters along with the data. In the below examples, we will see the practical usage of the CLEAN function in the practical world.

CLEAN Formula in Excel

Below is the CLEAN Formula in Excel.

CLEAN formula in excel

CLEAN Formula in Excel includes only one parameter, i.e. TEXT.

  • TEXT: The desired text you wish to remove the non-printable characters. This parameter or argument can be applied by referencing a cell or entering the data directly into the argument using double quotes.

How to Use the CLEAN Function in Excel?

CLEAN Function in Excel is very simple and easy to use. Let us understand the working of the CLEAN Function in Excel with some examples.

You can download this CLEAN Excel Function Template here – CLEAN Excel Function Template

Example #1

Suppose you are working in a marketing department as a Marketing Executive, and you, the manager, are asked to collect some of the important growth factors in the real estate sector in India. You have researched enough and collected the below data after surfing the internet for 2 days, and the data looks messier than usual.

CLEAN Example 1-1

Since you have directly copied from the browser, you found these non-printable characters marked in the red boxes in the above image. It is a brainer that you need to remove those extra special characters before submitting the data to your manager. You cannot do this manually. Copy the data to an Excel file and apply a CLEAN function.

Step 1: Copy the data to the Excel sheet.

CLEAN Example 1-2

Step 2: Apply the CLEAN function in cell B2; the formula should be like the one below.

=CLEAN(A2)

CLEAN Example 1-3

So the output will be :

CLEAN Example 1-4

We have applied the CLEAN Function in column B by dragging it. All the special characters are 7-bit ASCll code characters. A CLEAN function can clean the text’s first 32 7-bit ASCll code characters.

CLEAN Example 1-5

Below is the list of ASCll characters.

CLEAN Example 1-6

Example #2

As a marketing executive, you work on research on so many things. While researching, you found below the important contact numbers of C-level executives. C level means CEO, CFO, COO, etc. Along with the contact numbers, you copied non-printable characters also.

C Example 2-1

If you look at these telephone numbers, you cannot say the full numbers here. These are not special characters but rather a special font name. The font name Wingdings assigns a name to all special characters.

C Example 2-2.

For these kinds of cases, also we can apply a CLEAN function to clean our data. So now, let us go ahead and apply a CLEAN function to our telephone numbers.

C Example 2-3

So the output will be :

C Example 2-4

After applying the CLEAN function to our data, it converted to numbers, i.e., from special font characters to normal characters. So the final output will occur by dragging cell B2 :

C Example 2-5

Applying the CLEAN function removes formatting associated with numbers and replaces it with text formatting. We must use the VALUE formula before the CLEAN function to retain the number format.

C Example 2-6

So the output will be :

C Example 2-7

The final output will occur by dragging cell B2 :

C Example 2-8

So, the VALUE function helps convert our supplied value to a number format. This is how CLEAN can be vital in cleaning our messy data into beautiful, presentable data.

Things to Remember

  • CLEAN Function in Excel can remove 0 to 32 7-bit ASCll code characters from the list.
  • CLEAN Function available in Excel 2003 and later versions.
  • The codes 127, 129, 141, 143, 144, and 157 generated additional non-printable characters.
  • Some non-printable characters are not visible at all, but a CLEAN function can find that non-visible character and helps to remove the same.

Recommended Articles

This has been a guide to CLEAN in Excel. Here we discuss how to use CLEAN Function in Excel, examples, and a downloadable Excel template. You may also look at these useful functions in Excel –

  1. Uses of POWER Function in Excel
  2. How to use the IRR Function in Excel?
  3. Guide on SUBSTITUTE Function in Excel
  4. Best Examples of MID Excel Function
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download CLEAN Excel Function Template

EDUCBA Login

Forgot Password?

EDUCBA

Download CLEAN Excel Function Template

EDUCBA

डाउनलोड CLEAN Excel Function Template

🚀 Limited Time Offer! - 🎁 ENROLL NOW