Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Replace multi-select values using formula

Topic Labels: Formulas
Solved
Jump to Solution
887 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I am looking for a way to use the REPLACE() formula function to replace values in a Multi-select column with different values on a new column.

For example:

The original column contains column Type of question with multi-select values bug-report, enhancement.

Can we create a new column called Type of question (new) with the corresponding new values: bug-report-new and enhancement-new?

1 Solution

Accepted Solutions

I would use the SUBSTITUTE() function instead: SUBSTITUTE({Type of Question},'bug-report','bug-report-new')
^ This simple formula will work, but you’ll have to nest a bunch of SUBSTITUTE()s to account for each multi-select option possible.

So try something like this: IF({Type of Question},SUBSTITUTE({Type of Question},',','-new,')&'-new')
^ that formula will add a ‘-new’ to the end of any field option you have., which is handy if you have quite a few or will need to add more options in the future since this formula will account for new options automatically/

See Solution in Thread

2 Replies 2

I would use the SUBSTITUTE() function instead: SUBSTITUTE({Type of Question},'bug-report','bug-report-new')
^ This simple formula will work, but you’ll have to nest a bunch of SUBSTITUTE()s to account for each multi-select option possible.

So try something like this: IF({Type of Question},SUBSTITUTE({Type of Question},',','-new,')&'-new')
^ that formula will add a ‘-new’ to the end of any field option you have., which is handy if you have quite a few or will need to add more options in the future since this formula will account for new options automatically/

I would use the SUBSTITUTE() function instead: SUBSTITUTE({Type of Question},'bug-report','bug-report-new')
^ This simple formula will work, but you’ll have to nest a bunch of SUBSTITUTE() s to account for each multi-select option possible.

This format helped, thank you! I ended up nesting the formula for my replacements. :white_check_mark: