I have a series of fields I want to concatenate together. The final result needs to include a semi-colon in between each piece of data, but not all columns have data. So I was working to do an IF statement to check if the last of the columns (far right column of data I want) had data, if so, concatenate it with the other fields.
The formula I came up with (but is not a valid formula and I can't figure out why) is:
IF({Revenue Rolodex}, CONCATENATE({Revenue Rolodex},”;”,{VIP Day Social},”;”,{4M Event},”;”,{Applied to DID},”;”,{DID Calculator},”;”,{VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({VIP Day Social}, CONCATENATE({VIP Day Social},”;”,{4M Event},”;”,{Applied to DID},”;”,{DID Calculator},”;”,{VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({4M Event}, CONCATENATE({4M Event},”;”,{Applied to DID},”;”,{DID Calculator},”;”,{VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({Applied to DID}, CONCATENATE({Applied to DID},”;”,{DID Calculator},”;”,{VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({DID Calculator}, CONCATENATE({DID Calculator},”;”,{VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({VIP Day Bootcamp}, CONCATENATE({VIP Day Bootcamp},”;”,{2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({2022 Advent Calendar}, CONCATENATE({2022 Advent Calendar},”:”,{VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({VIP Day Quiz}, CONCATENATE({VIP Day Quiz},”;”,{FREEBIE: Roadmap},”;”),
IF({FREEBIE: Roadmap}, , )))))))))
However, I also now realize that even that doesn't take into consideration if another field after the first IF field is also blank for when it goes to concatenate.
My brain is in overload mode thinking about how to make it leave out the blank fields, and NOT include additional semi-colons. I have 19K plus rows that I'm working to do this with so we can import it into a CRM, so going through and clearing out the duplicate semi-colons where not necessary would be nigh impossible.
Any help would be greatly appreciated! Thanks in advance.