+ Reply to Thread
Results 1 to 9 of 9

Need a formula to remove an email address from a long string of text.

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Need a formula to remove an email address from a long string of text.

    Hi, i need a formula to remove an email address from a long string of text, i exported my hotmail account contacts on to a spreadsheet but each contact has been put in to 1 cell e.g.




    A `
    1 Contact 1 [email protected] 123 contact street
    2 Contact 2 [email protected] 1233 contact street

    etc
    etc.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Need a formula to remove an email address from a long string of text.

    =trim(replace(substitute(a1," ",rept(" ",99)),find("@",substitute(a1," ",rept(" ",99)))-50,150,""))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Need a formula to remove an email address from a long string of text.

    Do you mean that you want to end up with this:

    C
    1 Contact 1 123 contact street
    2 Contact 2 1233 contact street

    where the data is still contained within one cell but with the email address removed, or do you want the data to appear in two separate columns, like this:

    C ..................D
    1 Contact 1 ....123 contact street
    2 Contact 2 ....1233 contact street

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to remove an email address from a long string of text.

    Hi Pete,

    I would like to just have the email address in the column, none of the other details.

  5. #5
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to remove an email address from a long string of text.

    i see the confusion, i didn't propose the problem well enough haha.

  6. #6
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to remove an email address from a long string of text.

    Teethless mama - how can i make it so it takes out everything else other than the emaila addresses?

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Need a formula to remove an email address from a long string of text.

    Try this formula

    =TRIM(RIGHT(SUBSTITUTE(LEFT(A1,FIND(" ",A1&" ",FIND("@",A1)+1)-1)," ",REPT(" ",99)),99))
    Audere est facere

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Need a formula to remove an email address from a long string of text.

    No problem....

    =TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),FIND("@",SUBSTITUTE(A1," ",REPT(" ",99)))-50,99))

  9. #9
    Registered User
    Join Date
    11-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to remove an email address from a long string of text.

    thanks also, on a related note. i have characters in there i don't want, there are loads of commas, quote marks and a SMTP. how can i remove them? (doesn't have to be in 1 formula)

+ 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