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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!