Skip to main content

How I create formula that pulls data from two cells and eliminates the space by creating a dash between them

  • March 30, 2022
  • 3 replies
  • 38 views

Hello everyone, thanks in advance for any support. I would like to create a formula that pulls organization names and what state they are in and eliminate the space and have a dash between them. I.E. Akoutis CA would be Akoutis-CA. See attachment

3 replies

Forum|alt.badge.img+16
  • Inspiring
  • March 30, 2022

{Organization Name} & “-” & {State}


kuovonne
Forum|alt.badge.img+29
  • Brainy
  • March 30, 2022

It looks like you sometimes don’t have a state, in which case I assume that you also do not want to have the dash.

CONCATENATE(
    {Organization Name},
    IF({State}, "-" & {State})
)

  • Author
  • New Participant
  • March 31, 2022

It looks like you sometimes don’t have a state, in which case I assume that you also do not want to have the dash.

CONCATENATE(
    {Organization Name},
    IF({State}, "-" & {State})
)

Thank you. This solution worked great. I appreciate it.