Creating an email out of a full name
Hi,
I am trying to make an email out of a full name cell and am running into issues when trying the Right/Left method (ex: =RIGHT(A2,LEN(A2)-FIND(" ",A2,1)) and =LEFT(A2,SEARCH(" ",A2)).
When trying the above method, the Left would not work (was going to split them up and bring back together with CONCATENATE).
All emails on this sheet follow the same pattern: "First"."Last"@gmail.com like the example below. Is there a reason the =left function is not working? Is there a better method for Smartsheets?
Thanks for any input!
Answers
-
Hi @Desertbird
Try this:
=LEFT(Name@row, FIND(" ", Name@row) - 1) + "." + RIGHT(Name@row, FIND(" ", Name@row)) + "@gmail.com"
You'll want to find the Space between the first and last name in the Name cell and use that (minus 1) as the starting position for the LEFT and RIGHT functions. Then you can add together the other elements of an email with the + symbol.
Let me know if this works!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Hi, Yes thank you this worked, however it left a space between the period and the last name, is there a way to remove this?
-
Hi @Desertbird
My apologies! We need to use something slightly different for the RIGHT portion of the formula. To find the character to start returning values from, we can use LEN to calculate the number of characters in the cell, then minus the number of characters from the left of the space.
Try this:
=LEFT(Name@row, FIND(" ", Name@row) - 1) + "." + RIGHT(Name@row, (LEN(Name@row) - FIND(" ", Name@row))) + "@gmail.com"
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!