Skip to main content
Solved

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

  • August 15, 2022
  • 3 replies
  • 223 views

Forum|alt.badge.img+4

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!

Best answer by kuovonne

3 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • Answer
  • August 15, 2022

Forum|alt.badge.img+4
  • Author
  • New Participant
  • August 15, 2022

Thank you so much, @kuovonne! :heart_eyes:


Forum|alt.badge.img+4
  • New Participant
  • October 24, 2024

Thank you so much, @kuovonne! :heart_eyes:


So helpful!  Stumbled across this and it worked like a charm.... 🙂