Home › Functions › Text › TRIM
fx
TRIM
Text  ·  Since: Excel 2003  ·  9 languages

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.

🌐 Translations

English TRIM
Deutsch GLÄTTEN
Français SUPPRESPACE
Español ESPACIOS
Italiano ANNULLA.SPAZI
Português ARRUMAR
Nederlands SPATIES.WISSEN
Polski USUŃ.ZBĘDNE.ODSTĘPY
Русский СЖПРОБЕЛЫ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

TRIM(text)

Arguments

text (required) — The text from which you want spaces removed.

▶ Examples

=TRIM(C3)
=TRIM(CLEAN(B5))
=TRIM(" Sales report ")

Related functions

Copied to clipboard