+ Reply to Thread
Results 1 to 7 of 7

Extract email addresses between words in a cell

  1. #1
    Registered User
    Join Date
    11-18-2014
    Location
    Uganda
    MS-Off Ver
    2013
    Posts
    25

    Question Extract email addresses between words in a cell

    Hi All,

    I have been having troubles researching trying to find a solution to my issue below:

    As a result of a custom data report run, I have a set of emails that are enclosed within other words in one column. I was hoping to ask here if there was a way I could extract just the email addresses out? - I have attached a sample workbook.


    sample_steve.PNG



    Many Thanks for any help received.

    Cheers -Steve.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract email addresses between words in a cell

    Please try at E4

    =MID(LEFT(D4,LEN(D4)-3),FIND(LEFT(D4,FIND(" ",D4)-1),D4,2),50)
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Extract email addresses between words in a cell

    In E4

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and drag down

    Kind regards
    Leo

  4. #4
    Registered User
    Join Date
    11-18-2014
    Location
    Uganda
    MS-Off Ver
    2013
    Posts
    25

    Re: Extract email addresses between words in a cell

    Quote Originally Posted by Bo_Ry View Post
    Please try at E4

    =MID(LEFT(D4,LEN(D4)-3),FIND(LEFT(D4,FIND(" ",D4)-1),D4,2),50)

    This is fantastic! Works as needed. I just have one future-proofing question, if the original email appears as for example:

    John [email protected]

    Is there something I could add into your current formula to cater for such anomalies?

    If not, as is will do for now.

    Thank you so much.

  5. #5
    Registered User
    Join Date
    11-18-2014
    Location
    Uganda
    MS-Off Ver
    2013
    Posts
    25

    Re: Extract email addresses between words in a cell

    Quote Originally Posted by LeoTaxi View Post
    In E4

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and drag down

    Kind regards
    Leo
    Thank you Leo for this. This one seems to most of what I asked initially, just the last letters on the end need to come off after the domain name. Thanks again for helping out!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract email addresses between words in a cell

    Try

    =MID(LEFT(D4,LEN(D4)-3),FIND(" ",D4)+1+MATCH(TRUE,INDEX(CODE(MID(D4,FIND(" ",D4)+ROW($A$2:$A$20),1))<91,),),50)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-18-2014
    Location
    Uganda
    MS-Off Ver
    2013
    Posts
    25

    Re: Extract email addresses between words in a cell

    Quote Originally Posted by Bo_Ry View Post
    Try

    =MID(LEFT(D4,LEN(D4)-3),FIND(" ",D4)+1+MATCH(TRUE,INDEX(CODE(MID(D4,FIND(" ",D4)+ROW($A$2:$A$20),1))<91,),),50)
    Thank you Bo_Ry!! This is works perfectly!!

    Once again, thank you for your help

+ 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. [SOLVED] Formula to extract First Name from email addresses
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-01-2019, 12:16 PM
  2. [SOLVED] Extract or Delete only specific email addresses from a cell (i.e., *.gmail.com)
    By symaxf in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-14-2017, 02:57 PM
  3. [SOLVED] How can I extract email addresses within text
    By sueryan13 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-17-2015, 04:58 AM
  4. [SOLVED] Extract Email Addresses
    By amicman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-06-2013, 04:33 PM
  5. Extract email addresses from hyperlinks
    By artsy in forum Excel General
    Replies: 1
    Last Post: 11-10-2011, 09:37 AM
  6. Extract Email Addresses From Excel
    By blacksunseven in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2007, 05:48 AM
  7. How to extract email addresses to new column
    By Inquirer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 04:30 PM

Tags for this Thread

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