Skip to main content

Trim and Substitute '

  • February 26, 2024
  • 1 reply
  • 12 views

K_B1
Forum|alt.badge.img+7
  • Known Participant

I am working on a formula that

1. Trims

2. Replaces Double Quotes (") with Apostrophes Quote (')

3. Replaces Ampersands (&) with 'and'.

TRIM(SUBSTITUTE(
SUBSTITUTE(DESCRIPTION, '"', ''),'&','and'))

The above works, except, if I change it to include the Apostrophes Quote ('), it gets an airtable error.  Any advice?

Kevin

1 reply

TheTimeSavingCo
Forum|alt.badge.img+31

Try this:

 

TRIM( SUBSTITUTE( SUBSTITUTE( Description, '"', "'" ), '&', 'and' ) )