Forum Discussion
Philippevdlof
Jun 30, 2022Copper Contributor
first and last name to email from one cell
Hi, I am trying to create a code to have the first and last name from a single cell to an email address with a dott in between the first and the last name. Example, Anton van der sloot --> anton.va...
- Jun 30, 2022
=LEFT(C5,SEARCH(" ",C5)-1)&"."&SUBSTITUTE(RIGHT(C5,LEN(C5)-SEARCH(" ",C5))," ","")&"@email.com"Maybe with this formula.
OliverScheurich
Jun 30, 2022Gold Contributor
=LEFT(C5,SEARCH(" ",C5)-1)&"."&SUBSTITUTE(RIGHT(C5,LEN(C5)-SEARCH(" ",C5))," ","")&"@email.com"Maybe with this formula.
Philippevdlof
Jun 30, 2022Copper Contributor
OliverScheurich Is there a way to erase #value! message for the cells that aren't filled out?
- OliverScheurichJun 30, 2022Gold Contributor
=IFERROR(LEFT(C5,SEARCH(" ",C5)-1)&"."&SUBSTITUTE(RIGHT(C5,LEN(C5)-SEARCH(" ",C5))," ","")&"@email.com","")You can wrap the IFERROR around the formula.