Breaking apart email into Two fields

kcaenj

Board Regular
Joined
Oct 13, 2004
Messages
197
I have a field called Mail thath as the employees email address. I want to sepearate this into two different fields callled Mail1 and Mail2. The separation would occur at the "@" symbol and this would no longer be included. I would like to be able to do this without removing or altering the original Mail field. So it could create two new fields for each half of the address.

Thanks,

KC
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Why not just do it in a query rather than creating new fields?

The SQL would look something like this:

SELECT [Employee Emails].Mail, Left([Mail],InStr([Mail],"@")-1) AS Mail1, Mid([Mail],InStr([Mail],"@")+1) AS Mail2
FROM [Employee Emails];
 
Upvote 0

Forum statistics

Threads
1,221,845
Messages
6,162,350
Members
451,760
Latest member
samue Thon Ajaladin

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