TRIM

Removes all spaces from text except for single spaces between words. Use TRIM on text that may have irregular spacing.

Syntax

TRIM(text)

The TRIM function syntax has the following arguments:

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

Examples

FormulaDescriptionResult
=TRIM(” First Quarter Earnings “)Removes leading and trailing spaces from the text in the string (First Quarter Earnings)First Quarter Earnings