Formulas > =TRIM()
How To Use TRIM() Function in Google Sheets
Description
How To Actually Use TRIM() in Sheets
TRIM(text)
Try TRIM yourself
Use the TRIM formula to remove leading and trailing spaces from the text in cells A1:A10. The result should be displayed in the corresponding cells in B1:B10.
Hints (2)
-
Remember to apply the formula to each cell in the range.
-
You can drag the fill handle to copy the formula down.
1 Better Sheets Tutorial
Clean Up Names in a List
Learn more about the TRIM() formula:
Generate a TRIM() formula for your needs
Describe your task in plain English and get a paste-ready formula that uses TRIM(). 2 free AI generations, no signup. Members get unlimited use.
Generate a TRIM() formula