Concatenate Name if Preferred Name not blank
Hi, I am trying to create a formula where I can concatenate a person's name as "Smith, John" if they don't have a preferred name listed (if blank) and as "Smith, Jane (John)" if they do have a preferred name.
My fields are Last Name, First Name, and Preferred Name.
Can anyone help? Thanks so much!!!
Answers
-
To make this work you will need to add a column in between your First Name and Preferred Name columns. Then use this as a column formula for the newly added column:
=JOIN([Last Name]@row:[First Name]@row,", ")
Then in your desired result column use this formula:
=IF([Preferred Name]@row="",[New Column]@row,JOIN([New Column]@row:[Preferred Name]@row," "))
-
That helps with making both names appear, but I need it all in one column and with the preferred name before the legal name. Thank you!
-
It should look something like this.
-
You should be able to do it without a helper column.
=[Last Name]@row + ", " + [First Name]@row + IF([Preferred Name]@row <> "", "(" + [Preferred Name]@row + ")", "")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!