How to convert Full name to Last name, First and middle Name(s)?
I have a column with Full names (some with extended middle names) and want to create a column for Last Name, First and Middle name(s).
For example, convert Column A "Angela Marie Walters Smith" to value in Column B of "Smith, Angela Marie Walters"
What formula will return the value I'm looking for?
Thank you!
Best Answers
-
Try this:
=RIGHT([Column A]@row, LEN([Column A]@row) - FIND("!", SUBSTITUTE([Column A]@row, " ", "!", LEN([Column A]@row) - LEN(SUBSTITUTE([Column A]@row, " ", ""))))) + ", " + LEFT([Column A]@row, FIND("!", SUBSTITUTE([Column A]@row, " ", "!", LEN([Column A]@row) - LEN(SUBSTITUTE([Column A]@row, " ", "")))) - 1)
-
Thank you! It works like a charm.
I never would have figured that out on my own.
Answers
-
Try this:
=RIGHT([Column A]@row, LEN([Column A]@row) - FIND("!", SUBSTITUTE([Column A]@row, " ", "!", LEN([Column A]@row) - LEN(SUBSTITUTE([Column A]@row, " ", ""))))) + ", " + LEFT([Column A]@row, FIND("!", SUBSTITUTE([Column A]@row, " ", "!", LEN([Column A]@row) - LEN(SUBSTITUTE([Column A]@row, " ", "")))) - 1)
-
Thank you! It works like a charm.
I never would have figured that out on my own.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!