TRIM

Removes leading and trailing spaces in a specified string. Learn more

Video field
Text

In Google Sheets, the TRIM function is used to remove excess spaces from a text string.

It helps clean up data by eliminating leading, trailing, and multiple spaces between words, leaving only a single space between each word.

The syntax for the TRIM function in Google Sheets is as follows:

TRIM(text)

Here, "text" refers to the text or cell reference containing the text you want to trim. The function will return the trimmed version of the text.

For example, let's say you have the text " Hello World " in cell A1. You can use the TRIM function in another cell to remove the excess spaces:

=TRIM(A1)

The result will be "Hello World" with a single space between the words.

Want even more from Google Sheets?


With Softr, you can turn your spreadsheets into powerful web apps.You can give advanced roles and permissions to each user, build advanced logic and automation flows, customize the design to your needs, and much more.


Softr also offers a growing library of templates for internal tools, client portals, community hubs, and more. The templates come with a Google Sheet or an Airtable base that you can use to store and manage your data easily.


Try Softr now and build your custom web apps in 10 minutes no code required!