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

Data Analysis

  • How to Sort by Color in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Randomize/ Shuffle List in Excel
  • How to Create Gantt Chart in Excel
  • Use Data Form to input, edit and delete records in Excel

References

  • Last row number in range
  • How to get last row in text data in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Lookup entire row in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation whole percentage only
  • Excel Data validation date in specific year
  • Excel Data validation require unique number
  • Excel Data validation specific characters only
  • Excel Data validation exists in list

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel
  • How to use Excel TRUE Function
  • How to return blank in place of #DIV/0! error in Excel
  • Nested IF function example in Excel

Date Time

  • How to calculate nth day of week in month in Excel
  • Convert Excel time to decimal minutes
  • How to calculate future date say 6 months ahead in Excel
  • Convert date to text in Excel
  • Pad week numbers with zeros in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel
  • Calculate conditional mode with criteria in Excel

General

  • How to make excel worksheets print on one page?
  • How to get original price from percentage discount in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • How to calculate project complete percentage in Excel
  • How to Insert Cells, Row and Rows in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning