Apr 24, 2018 03:20 PM
I have one field that I would like to generate from three other ones. First Name, Last Name and Company
If there is a first and last name in the directory I would like to display it as the following:
Last Name, First Name
If there is no person’s name then I would like it to only display the name of the company. I just don’t know how to remove the space and comma. Currently using this:
CONCATENATE({Last Name}, ", “, {First Name},” ",Company)
I’m thinking I need some sort of IF/THEN statement??
Thanks!
Apr 24, 2018 06:13 PM
IF(AND({First Name} != BLANK(), {Last Name} != BLANK()), CONCATENATE({Last Name}, “, “, {First Name},” “,Company), Company)
Try that
Apr 24, 2018 06:39 PM
Darn. No luck. Invalid Formula error. Thanks for taking a stab at it though!
Apr 24, 2018 07:22 PM
IF(AND({First Name}!=BLANK(),{Last Name}!=BLANK()),CONCATENATE({Last Name},", ",{First Name}," ",Company),Company)
Sorry - I think somewhere in the copy-paste process the wrong character got put in for the "
s. That one should work, and if it doesn’t, manually delete the "
s and replace them with your keystroke for that character.
Apr 26, 2018 12:22 PM
Hi Jeremy,
Tha formula actually doesn’t report an error “invalid formula” like the first one you posted, so technically it works, but it still leaves a space and comma before the company name when there isn’t first and last name.
You are so close!!! I just want the names to line up flush in the column justified to the left. Thanks a bunch for your help!
Apr 26, 2018 01:40 PM
IF(AND({First Name},{Last Name}),{Last Name} & ", " & {First Name} & " ",BLANK()) & Company
Apr 26, 2018 02:05 PM
That did it! You are the man!! Thanks so much
Apr 09, 2019 04:14 PM
Hello @Jeremy_Oglesby,
I was wondering if you could help me with a similar issue. I have the following four columns:
Mtg Code
Attendee 1
A1 Mtg ID
A1 Mtg Code
I’d like to populate A1 Mtg Code with a concatenate of Mtg Code and A1 Mtg ID but only if Attendee 1 contains text. I know how to concatenate, and I know how to use IF statements, but I can’t quite figure out how to use them together.
I’ve tried several variations of your formula here with no luck. I’m sure I’m overlooking the obvious. Would you have any suggestions?
Thanks so much!
Amy
Apr 09, 2019 04:31 PM
What do you want it to contain if {Attendee 1}
does not contain text?
This formula will fill {A1 Mtg Code}
with “Mtg Code - A1 Mtg ID” if there is anything in {Attendee 1}
, otherwise it will leave {A1 Mtg Code}
blank:
IF(
{Attendee 1},
{Mtg Code} & " - " & {A1 Mtg ID},
)
Apr 09, 2019 05:16 PM
This is exactly what I needed. Thank you so much!!!