+ Reply to Thread
Results 1 to 10 of 10

Formula to extract emails when there is no spaces in the cell

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Formula to extract emails when there is no spaces in the cell

    Hi,

    I just received a database of contacts which I would like to use in my company.

    Melanie [email protected]
    Loic [email protected]

    Here are the first two cells. I found formulas to extract only the number and the first name. But I can not seem to find a Formula to only extract the email, as the characters before it always changes, but it will only be a number. ( I can not only extract the Last name too)

    There is 80 000 rows so doing it rows by rows wouls take too much time!

    Thanks in advanced

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to extract emails when there is no spaces in the cell

    Are the digits always 10 numbers? If so you can use this array formula with Ctrl Shift Enter

    =MID(A2,MATCH(TRUE,ISNUMBER(1*MID(A2,ROW($1:$99),1)),0)+10,99)
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Registered User
    Join Date
    10-10-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula to extract emails when there is no spaces in the cell

    Wow thank you so much ! I have been on this for so much time!

    Could you also help me extract only the second word (Last name), before the number? my goal is to extract: First Name, Last Name, Number and Email.

    Thank you so much!

  4. #4
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to extract emails when there is no spaces in the cell

    Glad to help

    Again this is another array formula

    =MID(A2,FIND(" ",A2)+1,MATCH(TRUE,ISNUMBER(1*MID(MID(A2,FIND(" ",A2)+1,99),ROW($1:$99),1)),0)-1)

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula to extract emails when there is no spaces in the cell

    Edit: too slow

  6. #6
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Formula to extract emails when there is no spaces in the cell

    array formula
    =REPLACE(A1,1,MAX(ISNUMBER(--MID(A1,ROW($1:$100),1))*ROW($1:$100)),)

  7. #7
    Registered User
    Join Date
    10-10-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula to extract emails when there is no spaces in the cell

    This is Great!
    Last question:

    To extract only the number i found this formula

    =SUMPRODUCT(MID(0&A1,LARGE(INDEX(ISNUMBER(--MID(A1,ROW($1:$25),1))*ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1:$25)/10)

    The issue is that if there are other numbers in the cell, such as in the email, it will also take it into account. Do you have a formula that would only take the phone number, between the last name and the email?

    Thank you so much again and again!

  8. #8
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to extract emails when there is no spaces in the cell

    Quote Originally Posted by melanieyas View Post
    this is great!
    Last question:

    To extract only the number i found this formula

    =sumproduct(mid(0&a1,large(index(isnumber(--mid(a1,row($1:$25),1))*row($1:$25),0),row($1:$25))+1,1)*10^row($1:$25)/10)

    the issue is that if there are other numbers in the cell, such as in the email, it will also take it into account. Do you have a formula that would only take the phone number, between the last name and the email?

    Thank you so much again and again!
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-10-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula to extract emails when there is no spaces in the cell

    Thank you So much!! You helped me save so much time!


  10. #10
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Formula to extract emails when there is no spaces in the cell

    No problem at all, glad to have helped.

    If this has been fully resolved can you mark the post as SOLVED and also click the little Add Rep star in the bottom left hand corner of my post.

    Thanks

+ 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] Extract multiple emails from text in cell - output in same row
    By juhaszp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2013, 12:51 PM
  2. [SOLVED] Formula to extract a word + 3 spaces
    By Marco-Kun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-22-2012, 03:20 PM
  3. how do i extract a number from a cell with no spaces?
    By Mulvaney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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