Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to add Trendline to a chart in Excel
  • Working With Tables in Excel
  • Error Bars in Excel
  • How to calculate current stock or inventory in Excel
  • Chart Axes in Excel

References

  • How to use Excel ROWS Function
  • Left Lookup in Excel
  • Extract data with helper column in Excel
  • Multi-criteria lookup and transpose in Excel
  • How to get relative row numbers in a range in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation unique values only
  • Excel Data validation exists in list
  • Excel Data validation don’t exceed total
  • Excel Data validation must contain specific text

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

by

What is TRIM function in Excel?

TRIM function is one of TEXT functions in Microsoft Office Excel that removes all spaces from text except for single spaces between words. Use TRIM on text that you have received from another application that may have irregular spacing.

Important: The TRIM function was designed to trim the 7-bit ASCII space character (value 32) from text. In the Unicode character set, there is an additional space character called the nonbreaking space character that has a decimal value of 160. This character is commonly used in Web pages as the HTML entity,  . By itself, the TRIM function does not remove this nonbreaking space character.

Syntax of TRIM function

TRIM(text)

The TRIM function syntax has the following arguments:

  • Text    Required. The text from which you want spaces removed.

Example of TRIM function

Steps to follow:

1. Open a new Excel worksheet.

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

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.

Formula Description Result
=TRIM(” First Quarter Earnings “) Removes leading and trailing spaces from the text in the formula (First Quarter Earnings) First Quarter Earnings

Post navigation

Previous Post:

MODE.MULT function: Description, Usage, Syntax, Examples and Explanation

Next Post:

231 Keyboard Shortcut Keys In Excel

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

Logical Functions

  • How to use Excel AND Function
  • Excel If, Nested If, And/Or Criteria Examples
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Convert Unix time stamp to Excel date
  • How to get year from date in Excel
  • Add business days to date in Excel
  • Convert date string to date time in Excel
  • Convert text timestamp into time in Excel

Grouping

  • Categorize text with keywords in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel
  • Group times into 3 hour buckets in Excel

General

  • Basic text sort formula in Excel
  • Using Existing Templates in Excel
  • How to calculate percent of goal in Excel
  • Check if multiple cells have same value with case sensitive in Excel
  • Spell Check in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning