Formula Library Generate →
TRIM
textRemoves extra spaces from text, leaving only single spaces between words.
Syntax
=TRIM(text)Example
Excel
=TRIM(A2)Removes all leading, trailing, and extra internal spaces from the text in A2.
Tips & Notes
- →Removes leading and trailing spaces completely
- →Reduces internal multiple spaces to one
- →Often needed after importing data from other systems
See Also
Need a custom TRIM formula?
Describe exactly what you need and get the formula generated instantly.