+ Reply to Thread
Results 1 to 3 of 3

Find & replace in unusual data

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    St Augustin, France
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    3

    Arrow Find & replace in unusual data

    I have a column of data in one of the following 4 formats:
    n (n) eg: 6 (1)
    nn (n) eg: 17 (3)
    n (nn) eg: 8 (13)
    nn (nn) eg: 15 (12)

    I want to separate the two elements into 2 columns and convert from text to number format. Using the first eg above the two elements would be 6 and 1.

    I'm trying copying columns and then using find and replace with wildcards but struggling. Any help genuinely very gratefully received.
    Last edited by deWinters; 06-15-2010 at 04:18 PM.

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

    Re: Find & replace in unusual data

    find replace " )" with nothing
    then data/text to columns use "space" and "( "as delimiters
    click finish
    or
    in b1 =LEFT(A1,FIND("(",A1)-1)+0
    and c1 =SUBSTITUTE(MID(A1,FIND("(",A1)+1,255),")","")+0
    then copy columns b and c paste back/ special /values
    Last edited by martindwilson; 06-14-2010 at 05:16 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

  3. #3
    Registered User
    Join Date
    06-14-2010
    Location
    St Augustin, France
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    3

    Re: Find & replace in unusual data

    Brilliant, thanks. Solved using first option.

+ 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