Skip to main content
Solved

Remove space from beginning of entries

  • Apr 22, 2020 2:03 AM UTC
  • 1 reply
  • 103 views

Hello,

I have a contacts record with peoples first and last names and for some reason many of them (not all) were imported with a space before their name. Is there a way to remove this space for each record? Thanks in advance!

Best answer by kuovonne

Welcome to the Airtable community!

You can use the TRIM() function in a formula field to remove white space. It is documented in the formula field reference.

For example, suppose you have the field {first name} and some of the names start with a space.

  1. Create a new formula field with the function TRIM({first name}).
  2. If there are a lot of names, wait for Airtable to populate the values for the entire column.
  3. Copy the entire column of trimmed names from the formula field to the original {first name} field.
View original
This topic has been closed for replies.

1 reply

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Answer
  • Apr 22, 2020 3:03 AM UTC

Welcome to the Airtable community!

You can use the TRIM() function in a formula field to remove white space. It is documented in the formula field reference.

For example, suppose you have the field {first name} and some of the names start with a space.

  1. Create a new formula field with the function TRIM({first name}).
  2. If there are a lot of names, wait for Airtable to populate the values for the entire column.
  3. Copy the entire column of trimmed names from the formula field to the original {first name} field.