+ Reply to Thread
Results 1 to 6 of 6

Extract email address info to other columns

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    25

    Extract email address info to other columns

    Hello All,

    I'm trying to extract email address info in the format [email protected] into separate columns for the fname and lname.

    I've tried using some FIND nested among MID constructs without much success.

    In essence, I want to end up with two additional columns for fname and lname extracted from the email address.

    Any help is greatly appreciated.

    tks,

  2. #2
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Extract email address info to other columns

    Hi,

    How about using Data tab---> Text to Columns --> Delimited --> separate by Other (.)
    This will separate the first name.

    To extract the last name from the domain you can use the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where 6 represents the number of symbols in the domain name +"@" character
    Liked the answer given? click * to say so

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Extract email address info to other columns

    Assuming Column A = email

    Column B = MID(A1,1,FIND(".",A1)-1)

    Column c = MID(A1,FIND(".",A1)+1,FIND("@",A1)-1)
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    05-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Extract email address info to other columns

    Thanks for the replies gents.

    Daffodil11, your first entry for Column B works as desired, however, the column C returns the lastname and "@" and part of the domain name as well.

    For example, [email protected] returned flintstone@ston in column C. If I can get rid of the "@ston" I am golden.

    tks,

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Extract email address info to other columns

    Whoops!

    MID(what, start, how far)

    MID(A1,start at . + 1, go on for (characters until @ + 1) - (characters until . )

    Column C = =MID(A1,FIND(".",A1)+1,FIND("@",A1)-1-FIND(".",A1))

    Sorry I left out the subtraction.

  6. #6
    Registered User
    Join Date
    05-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Extract email address info to other columns

    Daffodil11, thanks so much.

    Works perfectly!

    tks,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extract email address from eml files
    By lovinguy in forum Outlook Formatting & Functions
    Replies: 5
    Last Post: 02-08-2024, 05:31 AM
  2. [SOLVED] extract email address
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2013, 12:05 AM
  3. Extract a domain name from an email address
    By kpratico in forum Excel General
    Replies: 4
    Last Post: 01-01-2013, 08:43 PM
  4. [SOLVED] Help with a formula to extract email address to a new column
    By Clarence Leong in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 04:05 AM
  5. How to extract row and column info from .address
    By MrHockey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2009, 05:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1