TRIM Function
Remove extra ordinary spaces from text. TRIM removes the spaces at the beginning and the end of text and reduces every run of spaces between words to one space. Only the ordinary space character is removed: nonbreaking spaces (CHAR(160)) and tabs stay in the text.
Syntax
TRIM(text)
Category: Text. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=TRIM(" TX Sheet Control ")
The formula returns "TX Sheet Control".
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.