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

Data Analysis

  • Get column index in Excel Table
  • How To Compare Two Lists in Excel
  • How to Use Solver Tool in Excel
  • How to create Checklist in Excel
  • How to sum a total in multiple Excel tables

References

  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • To count total rows in a range in Excel
  • Two-way lookup with VLOOKUP in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage only
  • Excel Data validation no punctuation
  • Data validation must not exist 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

  • How to use Excel FALSE Function
  • How to use Excel AND Function
  • SWITCH function example in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Get month name from date in Excel
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation
  • Display Date is same month in Excel
  • Sum through n months in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • Map text to numbers in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Automatically fill series of cells in Excel using AutoFill
  • How to increase by percentage in Excel
  • Freeze and Unfreeze Panes in Excel
  • How to calculate percent variance in Excel
  • How to set or clear a print area in Excel Worksheet
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning