Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here
Oct 15, 2021 06:14 PM
I have a a Multiple Select Field which I am trying to substitute spaces with hyphens. The issue that I am running against is that the is space between items and the formula adds an extra hyphen in the final result. I am using LOWER(SUBSTITUTE(Series, " ", “-”))
See screenshot for field details and results.
Thanks for the help!!
substitute issue|700x237
Solved! Go to Solution.
Oct 15, 2021 08:42 PM
Welcome to the Airtable community!
You can substitute the comma and space between items with something else, then replace spaces with hyphens, and then finally put the comma and spaces back.
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
LOWER(Series),
", ",
"TEMP"
),
" ",
"-"
),
"TEMP",
", "
)
Oct 15, 2021 08:42 PM
Welcome to the Airtable community!
You can substitute the comma and space between items with something else, then replace spaces with hyphens, and then finally put the comma and spaces back.
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
LOWER(Series),
", ",
"TEMP"
),
" ",
"-"
),
"TEMP",
", "
)
Oct 16, 2021 11:45 AM
That did it. Thank you!