Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Windows SharePoint Services
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
TRIM function
 

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.

Syntax

TRIM(text)

Text   is the text from which you want spaces removed.

Example

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