+ Reply to Thread
Results 1 to 8 of 8

How to extract email lumped in the same cell with other data?

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    9

    How to extract email lumped in the same cell with other data?

    How to extract email lumped in the same cell with other data?

    That is how a cell with combined data looks like:
    "1690","test@hotmail.com","898"

    Seriously ,Help!

    Todor
    Last edited by todorko; 05-16-2013 at 03:08 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: How to extract email lumped in the same cell with other data?

    Does it includes ""?

    How does the "data" looks like?
    1. [1.]"1690","test@hotmail.com","898"
      [2.]1690,test@hotmail.com,898
      [3.]test@hotmail.com898

    Post a sample of your excel, so that others could be able to help you out.

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to extract email lumped in the same cell with other data?

    Hi,

    Thank you for replaying:

    [1.]"1690","test@hotmail.com","898"

    Todor

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How to extract email lumped in the same cell with other data?

    =MID(A1,FIND(CHAR(7),SUBSTITUTE(A1,"""",CHAR(7),3))+1,FIND(CHAR(7),SUBSTITUTE(A1,"""",CHAR(7),4))-FIND(CHAR(7),SUBSTITUTE(A1,"""",CHAR(7),3))-1)

    it's a bit messy, but it works for this data set...HTH
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to extract email lumped in the same cell with other data?

    How about
    =SUBSTITUTE(MID(A1,FIND(",",A1)+1, FIND(",",A1,FIND(",",A1)+1)- FIND(",", A1)-1),CHAR(34),"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    05-16-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to extract email lumped in the same cell with other data?

    Hi,
    I am getting that the formula contains an error. I did substitute commas with semi-colons, it did not work

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to extract email lumped in the same cell with other data?

    See attachment
    as per post 5
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-16-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to extract email lumped in the same cell with other data?

    My bad, it works fine!
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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