+ Reply to Thread
Results 1 to 6 of 6

Sort data into multiple rows

  1. #1
    Registered User
    Join Date
    12-02-2008
    Location
    Ireland
    Posts
    3

    Sort data into multiple rows

    Hi,
    First post so thanks in advance for any help on this.

    I'm trying to merge 2 spreadsheets togeather but befor I can do this I need to resolve the following issue - my Excel worksheet has 2 columns with data that looks like this
    Value1 X1,X2,X5
    I need it to change to this
    Value1 X1
    Value1 X2
    Value1 X5

    DAC
    Last edited by DAC; 12-02-2008 at 03:19 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    That first Value1 is all in one cell? Can you post several real examples of the data? Formulas can be used to parse out data around commas, but it's best to see some real data.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-02-2008
    Location
    Ireland
    Posts
    3
    Quote Originally Posted by JBeaucaire View Post
    That first Value1 is all in one cell? Can you post several real examples of the data? Formulas can be used to parse out data around commas, but it's best to see some real data.
    Yes Value1 is in one cell

    This is an actual example
    CCB012G C06, C08, C15, C20, C64, C95
    DSX003G D08, D18, D19, D20, D22, D24, D28

    It is a bill of materials for an electronic assembly with the part number in one cell & the reference designators in the other cell, these are separated by commas, the reference designators will typically contain either 3 or 4 characters.

    Thank you.
    Last edited by DAC; 12-02-2008 at 11:49 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    This seemed hard at first, then I realized Excel has a transposition function designed for this.

    First, convert you data into separate columns. Highlight the cells that have all the data in one cell, then use TEXT TO COLUMNS to split it. Choose delimited, choose comma and space delimiters. Now all your codes are separated. You can actually do this for your whole data set in one fell swoop.

    Now highlight the whole data set including the part # and copy it, put your cursor somewhere where there is a lot of open space, then choose Edit > Paste Special and tick the Transpose box.

    Voila.

  5. #5
    Registered User
    Join Date
    12-02-2008
    Location
    Ireland
    Posts
    3
    Thank you very much

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Be sure to EDIT your original post and mark the PREFIX box as [SOLVED]

+ 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