+ Reply to Thread
Results 1 to 3 of 3

Help Creating Two Columns from One

  1. #1
    Registered User
    Join Date
    10-29-2009
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help Creating Two Columns from One

    I'm not sure that this is the best place to post this quesiton but I'll ask it here anyway hoping that it can be placed in the best place.

    I need to extract text from cells that lie between left and right brackets.

    Here's a sample of my data. There are four scenarios that show up in the column of data.

    Column 1
    D32B02 [8079ZC]
    B09A01 []
    [8019C/A]
    []

    What I need to see after all is said and done is two columns. One with anything that is before the left bracket and one with everything between the two brackets.

    Example:

    Column 1 ................. Column 2
    Bin Location ............. Old Part Number
    D32B02 .................... 8079ZC
    B09A01 .................... empty
    empty ...................... 8019C/A
    empty ...................... empty

    Anybody have any ideas on how to accomplish this? I can't for the life of me figure out how to make this happen. I've got ASAP Utilities which is incredible but I don't see anything in it that would do this.

    Help would be greatly appreciated.

    Thanks,

    Jeremy
    Last edited by jsampsell; 10-29-2009 at 11:45 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help Creating Two Columns from One

    Try:

    =LEFT(A1,FIND("[",A1)-1)

    and

    =MID(A1,FIND("[",A1)+1,LEN(A1)-FIND("[",A1)-1)

    where A1 contains original... and copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-29-2009
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help Creating Two Columns from One

    Wow! Thanks for such a fast reply.

    Both worked perfectly. I can't tell you how much time you just saved me. Thank you so much!!!

+ 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