Help

The Airtable Community will undergo scheduled maintenance on September 17 from 10:00 PM PST to 11:15 PM PST. During this period, you may experience temporary disruptions. We apologize for any inconvenience and appreciate your understanding.

Concatenate multiple fields separated by commas without string of commas at end

Topic Labels: Formulas
Solved
Jump to Solution
2339 2
cancel
Showing results for 
Search instead for 
Did you mean: 
shelby_jackson
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello! I am currently using the below formula to pull together a list of cities that correspond to a record. I have City 1, City 2, City 3, City 4, City 5, Cities 6 fields. Formula looks like this:

CONCATENATE({BP City 1}, ", ",{BP City 2}, ", ",{BP City 3}, ", ",{BP City 4}, ", ",{BP City 5}, ", ",{BP Cities 6})

My formula works if all 6 fields contain cities although it doesn’t look great if only one city is listed. It ends up looking like this:

Philadelphia, , , , ,

Anyone know how to fix the formula so that the appropriate number of commas appear so there will not be a string of messy commas at the end?

Thank you!

1 Solution

Accepted Solutions
kuovonne
18 - Pluto
18 - Pluto

See Solution in Thread

2 Replies 2
kuovonne
18 - Pluto
18 - Pluto
shelby_jackson
5 - Automation Enthusiast
5 - Automation Enthusiast

Thank you so much, @kuovonne! :heart_eyes: