Welcome to the community, @Bushard_s_Delivery! :grinning_face_with_big_eyes: This should work:
{Address 1} & " " & IF({Address 2}, {Address 2} & " ") & City & " " & State & " " & Zipcode
Because only {Address 2}
is optional, the IF()
function only needs to wrap around that part. Also notice the shortcut syntax I used. By only including the field name, Airtable will evaluate the presence of any data that field as “true,” which will add that data and a separating space. If nothing is in {Address 2}
, nothing will be added. Finally, note that curly braces aren’t required around field names containing only a single word and no special characters. I’ll often include them in commentary here for clarity, so you know when I mention {City}
that it’s a field, but in the formula the braces can be omitted.