Arguments
text- The text to clean.
Removes leading, trailing, and repeated internal spaces from text.
Syntax
=TRIM(text)text - The text to clean.=TRIM(A2)Returns: A2 with extra spaces collapsed to single spaces
The fix for lookups that fail because of trailing spaces.
Yes. TRIM uses the same syntax in Google Sheets and LibreOffice Calc, so you can paste these formulas straight across.