Pull a first and last name from an auto email cell
I'm looking to pull a first and last name from an auto populated email address from a form. I want to auto populate a "Requestor Name" column based on the email that was generated.
For example:
Email - Joe_Smith@gmailcom
Requestor Name - Joe Smith
Answers
-
Will it always be "first_last"?
-
There may be a number after the last name, but for the most part it is always first_last
-
I assume you also want to exclude that number?
-
If possible, that would be great!
-
Ok. Let me do some testing, and I will get back to you with what I find. I am sure it is possible though.
-
So the most straightforward (but not very pretty) way of doing this would be to nest a series of SUBSTITUTE functions to replace the underscore with a space and any numbers with empty after using a LEFT/FIND to pull the left part of the string before the @.
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LEFT(Email@row, FIND("@", Email@row) - 1), "_", " "), "0", ""), 1, ""), "2", ""), "3", ""), "4", ""), "5", ""), "6", ""), "7", ""), "8", ""), "9", "")
-
That worked!
Thank you so much!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!