I need to add multiple formulas to convert firstname.lastname@email.com into fl@email.com

jiuanchoja

New Member
Joined
Jan 19, 2017
Messages
1
Hello all,

I am trying to take an email from one cell, say for example A1 and I want to do a few things, the first one is to take the first initials of the first and last name, written as first.last@email.com.

I want to convert this into fl@email.com

What I have done is to use the following formulas. They work well in different cells, but I can't put them together into the same cell. What my formula can do so far and whats on each cell:

in cell A1: First Last
in cell B1: job title
in cell C1: first.last@email.com
in cell F1: =LEFT(A1)&IF(ISNUMBER(FIND(" ",A1)),MID(A1,FIND(" ",A1)+1,1),"")&IF(ISNUMBER(FIND(" ",A1,FIND(" ",A1)+1)),MID(A1,FIND(" ",A1,FIND(" ",A1)+1)+1,1),"")
in cell G1: =CONCATENATE(F1, "@email.com ")

What I want to do is to put both formulas in F1 and G1 in F1 to return fn@email.com

I have the same problem when I want to convert from first.last@email.com into f.l@email.com using first initials and adding a "." My formula in two cells which work is

in cell A1: First Last
in cell B1: job title
in cell C1: first.last@email.com
in cell D1: =FirstCharacters(A1)
in cell E1: =REPLACE(D1, 4, 1,"@email.com")

I also need a formula to convert from first.last@email.com into firstlast@email.com (taking out the dot ) and viceversa.

Thank you for your advice.
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,483
Office Version
  1. 365
Platform
  1. Windows
Hi, welcome to the forum!

Does this cover all the variations?

<b>Excel 2013</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>C</th><th>D</th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-decoration: underline;color: #0563C1;;">first.last@email.com</td><td style=";">fl@email.com</td><td style=";">f.l@email.com</td><td style=";">firstlast@emailcom</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">D1</th><td style="text-align:left">=LEFT(<font color="Blue">C1</font>)&MID(<font color="Blue">C1,FIND(<font color="Red">".",C1</font>)+1,1</font>)&"@email.com"</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">E1</th><td style="text-align:left">=LEFT(<font color="Blue">C1</font>)&MID(<font color="Blue">C1,FIND(<font color="Red">".",C1</font>),2</font>)&"@email.com"</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">F1</th><td style="text-align:left">=SUBSTITUTE(<font color="Blue">C1,".",""</font>)</td></tr></tbody></table></td></tr></table><br />
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,483
Office Version
  1. 365
Platform
  1. Windows
EDIT: The formula in F1 should be changed to:

=SUBSTITUTE(C1,".","",1)
 

Watch MrExcel Video

Forum statistics

Threads
1,127,477
Messages
5,624,981
Members
416,065
Latest member
meiravmeron

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top