+ Reply to Thread
Results 1 to 8 of 8

extracting from a cell ...

  1. #1
    Registered User
    Join Date
    03-20-2010
    Location
    Barcelona
    MS-Off Ver
    Excel 2003
    Posts
    3

    extracting from a cell ...

    Dear Excel experts,

    I will appreciate your help on the following:

    I have a column of cells like the following:
    johnsmith ([email protected])
    I need a formula that takes away [email protected] and puts it in the side cell

    thanks in advance for your time and know-how

    Marcello
    Barcelona

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: extracting from a cell ...

    Data > Text to columns, Delimited, Next, in the Other box put (, Finish.

    Then replace ) with nothing in col B.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extracting from a cell ...

    have you a few more examples?
    but for that i'd use data text to columns delimited
    use ( as delimiter. that would split it
    johnsmith [email protected])
    then find ) replace with nothing
    lol it took me longer to type that than shg.
    Last edited by martindwilson; 03-20-2010 at 08:53 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: extracting from a cell ...

    ... oh, and welcome to the forum.

  5. #5
    Registered User
    Join Date
    03-20-2010
    Location
    Barcelona
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: extracting from a cell ...

    thanks to you both guys, itīs been years (maybe more than 10) that I havenīt used excel formulas, so excuse me if I ask for the whole formula as to be written:

    and yes, martindwilson, it could be like this

    (letīs say they are in cells A1, A2, A3)

    johnsmith ([email protected])
    marystewart ([email protected])
    marktwain ([email protected])

    so, if you could please state the whole formula I should write in B1, B2, B3 to get [email protected] in B1, [email protected] in B2, [email protected] in B3

    thanks once again ... Iīm desperate because I have 2.700 cells and doing it by hand itīs a nightmare

    Marcello
    Barcelona

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: extracting from a cell ...

    Hi,

    go with shg's suggestion:

    - select all cells with email addresses in the column. (make sure that the columns to the right are empty)
    - click Data - Text to columns - tick "delimited" - click Next
    - tick "other" and enter ( as the delimiter - click Finish
    Now your email addresses are in their own column, all ending with a ")".
    - Hit Ctrl-H to open the Find and replace dialog.
    - Enter a ) in the "Find What" box and leave the "Replace With" box empty.
    - Click Replace all.

    Now the trailing ) is gone from all email addresses.

    Alternatively, with your data in column A, starting in row 1, use this formula in B1 and copy down

    =SUBSTITUTE(MID(A1,FIND("(",A1)+1,99),")","")

    Then copy the result column and use Paste Special - Values to paste into another column. You can then delete column B.
    Last edited by teylyn; 03-21-2010 at 05:40 AM.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: extracting from a cell ...

    or formula approach for both see attached
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-20-2010
    Location
    Barcelona
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: extracting from a cell ...

    you are amazing, guys!

    not only for the speed on answering back and for your expertise, but for helping for nothing in return, something very unusual these days ...

    grateful regards,

    Marcello
    Barcelona

+ 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