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.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi, welcome to the forum!

Does this cover all the variations?


Excel 2013
CDEF
1first.last@email.comfl@email.comf.l@email.comfirstlast@emailcom
Sheet1
Cell Formulas
RangeFormula
D1=LEFT(C1)&MID(C1,FIND(".",C1)+1,1)&"@email.com"
E1=LEFT(C1)&MID(C1,FIND(".",C1),2)&"@email.com"
F1=SUBSTITUTE(C1,".","")
 
Upvote 0
EDIT: The formula in F1 should be changed to:

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

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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
Back
Top