+ Reply to Thread
Results 1 to 5 of 5

Transpose Multiple Columns to one Row with Unique Identifier

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    MN, US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Transpose Multiple Columns to one Row with Unique Identifier

    I am trying to transpose A LOT of data (>10,000 unique identifiers) from multiple colums into rows with their unique ideitifiers.

    Here is a sample of my data:

    ID category1 category2 category3
    10 walk run
    11 run walk jump
    12 sit jump
    13 jump

    This is what the result would be:
    ID Category
    10 walk
    10 run
    11 run
    11 walk
    11 jump
    12 sit
    12 jump
    13 jump

    Please notice that all IDs do not have the same number of categories. In my actual data, some of my IDs have up to 19 categories. Does anyone have a macro they could share?

    Thank you SO very much!

  2. #2
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Transpose Multiple Columns to one Row with Unique Identifier

    This seems to work for your example data:
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    MN, US
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Transpose Multiple Columns to one Row with Unique Identifier

    Thanks for the response. However, no data shows up in the highlighted cells that contain formulas you provided. Am I missing something?

  4. #4
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Transpose Multiple Columns to one Row with Unique Identifier

    They show up in my version, the "iferror" function should work in Excel 2007 and higher.
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: Transpose Multiple Columns to one Row with Unique Identifier

    Try
    Please Login or Register  to view this content.
    Sample.xlsm

+ 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