Hello -
I'm looking to concatenate the values from a selected record from 5 columns:
Address
Address2
City
State
Zip
So that when the formula is executed, I have something like this: Address, Address2, City, State Zip
Here is the formula that I've written
Hi @jessicadduffey,
If only Address2 may sometimes be empty, you could use the following approach:
$"{varSelectedLoc.Address}, {If(!IsBlank(varSelectedLoc.Address2), varSelectedLoc.Address2 & ", ")}{varSelectedLoc.City}, {varSelectedLoc.State}, {varSelectedLoc.Zip}"
In this case we use string interpolation to improve readability and use an If statement to only display Address2 when it has a value. (I have also added a comma between State and Zip.)
If we expect multiple fields to possibly be empty, we may need a more dynamic approach.
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional