Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Extract data with helper column in Excel
  • How to get address of last cell in range in Excel
  • Create hyperlink with VLOOKUP in Excel
  • How to use Excel LOOKUP Function
  • How to retrieve first match between two ranges in Excel

Data Analysis Examples

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Understanding Pivot Tables in Excel
  • How to add Trendline to a chart in Excel
  • Randomize/ Shuffle List in Excel

Data Validation Examples

  • Excel Data validation date in specific year
  • Excel Data validation date in next 30 days
  • Excel Data validation require unique number
  • Excel Data validation specific characters only
  • Prevent invalid data entering in specific cells

CLEAN function: Description, Usage, Syntax, Examples and Explanation

by

What is CLEAN function in Excel?

CLEAN function is one of TEXT functions in Microsoft Excel that removes all nonprintable characters from text. Use CLEAN on text imported from other applications that contains characters that may not print with your operating system. For example, you can use CLEAN to remove some low-level computer code that is frequently at the beginning and end of data files and cannot be printed.

Worked Example:   Convert text to numbers using VALUE function in Excel

Important: The CLEAN function was designed to remove the first 32 nonprinting characters in the 7-bit ASCII code (values 0 through 31) from text. In the Unicode character set, there are additional nonprinting characters (values 127, 129, 141, 143, 144, and 157). By itself, the CLEAN function does not remove these additional nonprinting characters. For an example of how to remove these additional nonprinting characters from text, see Top ten ways to clean your data.

Worked Example:   Remove leading and trailing spaces from text in one or more cells in Excel

Syntax of CLEAN function

CLEAN(text)

The CLEAN function syntax has the following arguments:

  • Text: Any worksheet information from which you want to remove nonprintable characters.

Example of CLEAN function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Worked Example:   Remove line breaks in a cell in Excel

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Data
=CHAR(9)&”Monthly report”&CHAR(10)
Formula Description Result
=CLEAN(A2) Removes the nonprintable characters CHAR(9) and CHAR(10) from the text string in cell A2. Monthly report

Post navigation

Previous Post:

CODE function: Description, Usage, Syntax, Examples and Explanation

Next Post:

ASC function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Add line break based on OS in Excel
  • CODE function: Description, Usage, Syntax, Examples and Explanation
  • Split dimensions into two parts in Excel Worksheet
  • Convert Text to Numbers in Excel
  • Put names into proper case — Manipulating NAMES in Excel
  • Calculate years between dates in Excel
  • DAY function: Description, Usage, Syntax, Examples and Explanation
  • Series of dates by day
  • WORKDAY.INTL function: Description, Usage, Syntax, Examples and Explanation
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation
  • Future value vs. Present value examples in Excel
  • DOLLARDE function: Description, Usage, Syntax, Examples and Explanation
  • Example of Future value of annuity in Excel
  • EFFECT function: Description, Usage, Syntax, Examples and Explanation
  • TBILLYIELD function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles