Results 1 to 7 of 7

Need to reorg table so new table is row1= col1, col2,n1,col3,row2=col1,col2,n2,col4

Threaded View

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Houston, TX USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to reorg table so new table is row1= col1, col2,n1,col3,row2=col1,col2,n2,col4

    I have a data set with 5 columns. The first 2 columns are identifiers and the last 3 columns are properties. I need to convert the data so that I have 2 identifiers on each row. Then I want to put the name of each property on one row along with the value of that property. So along with the name of column 3 as column 3 and value of column 4 as column 4. The next row of data will be the first 2 columns of the data set plus the name of column 4 as column 3 and the value of column 4 as column 4.
    Example data:

    What I have is:

    FirstName LastName Height Weight HairColor
    Bob Smith 6'0" 200 Brown
    Mary Jones 5'6" 120 Blond

    What I need is:

    FirstName LastName PropertyName PropertyValue
    Bob Smith Height 6'0"
    Bob Smith Weight 200
    Bob Smith HairColor Brown
    Mary Jones Height 5'6"
    Mary Jones Weight 120
    Mary Jones HairColor Blond

    Does anyone have any ideas on how to do this? Many thanks for your help. My actual files might have 4 - 6 columns of identifiers, up to 100 rows of properties and hundreds or thousands of rows of data so this is not a trivial conversion.
    Attached Images Attached Images
    Last edited by Brantly; 08-19-2012 at 11:48 PM. Reason: Solved

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