+ Reply to Thread
Results 1 to 5 of 5

Extract a domain name from an email address

  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    VT, USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Extract a domain name from an email address

    I have a massive list of email addresses, and I need a formula to easily extract the domain name from each.

    For example, in cell A1 I have the email address: [email protected]

    In cell B1, I want to extract just the domain name: @northpole.com


    I found the following formula, but I keep getting an error when I try to use it: =RIGHT(A1,((LEN(A1)-FIND(“@”,A1))))

    Attached is a sample excel file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Extract a domain name from an email address

    The formula is fine, but you need to:

    1. Include the = sign at the front of it and
    2. Replace the unicode quote marks with ASCII ones - if you type that formula in rather than cutting and pasting it then it will work fine.

    If you want to include the @ symbol you'll need to add +1 inside the final close bracket.

  3. #3
    Registered User
    Join Date
    03-19-2010
    Location
    VT, USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    SOLVED Re: Extract a domain name from an email address

    That worked - thanks so much for your help!

  4. #4
    Registered User
    Join Date
    01-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Extract a domain name from an email address

    I used
    =RIGHT(A1;((LEN(A1)-FIND("@";A1))))
    but have not been able to get this to work.

    The curser in the details area "hangs up" by highlighting the first A1. I changed the quotes around the @ to asci.

    I am in Excel 2007. Any help appreciated.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extract a domain name from an email address

    xlphillips, welcome to the forum, and happy new year

    howerever, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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