IF Function for MI in emails

R

rkresser

Excel MVPs:

So this is another question about figuring out emails. I have first
name in column A, Middle Initial in Column B, and Last Name in Column
C, and Domain in Column D. I need a formula that gives A.B.C@D If there
is a middle initial, and A.C@D if there isnt one. Thanks again.

Reece
 
D

Die_Another_Day

Put this in Cell D1:
=IF(ISBLANK(B1),A1&C1,A1&B1&C1)
Add & " " & between Cells if you want spaces
HTH

Die_Another_Day
 
D

Die_Another_Day

Doh! I didn't read it clearly enough sry.
Put this in E1
=IF(ISBLANK(B1),A1&C1&"@"&D1,A1&B1&C1&"@"&D1)


Die_Another_Day
 
M

Mark Lincoln

This assumes your data is in row 1 and that there is always a first
name and a last name:

=A1&"."&IF(ISBLANK(B1),"",B1&".")&C1&"."&"@"&D1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top