Home › TRIM
Excel TRIM Function — Syntax, Example & Tips
Removes extra spaces from text, leaving single spaces between words.
Syntax
=TRIM(text)
Example
=TRIM(A2)
Clean the extra spaces in A2.
Tip
It is the first cleaning step before any VLOOKUP.
Want an expert to do it for you?
Gomaa Intelligence turns your data into clear reports and decisions. Tell us your problem and we will reply.
FAQ
What does TRIM do?
Removes extra spaces from text, leaving single spaces between words.
How do I use TRIM?
=TRIM(A2) — Clean the extra spaces in A2.
Related functions
VLOOKUP · XLOOKUP · SUMIFS · COUNTIFS · IF · IFERROR · TEXTJOIN · COUNTIF · SUMPRODUCT · UNIQUE · FILTER · DATEDIF · TEXT