+ Reply to Thread
Results 1 to 3 of 3

Turning 2 row table into a multi-column table

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Turning 2 row table into a multi-column table

    Is it possibleto convert a 2-row table such as the one below:

    Name 1 Name 2 Name 3 Name 4 Name 5 Name 6 Name 7 Name 8 Name 9 Name 10 Name 11 Name 12 Name 13
    Group A Group B Group A Group A Group C Group D Group D Group D Group B Group C Group C Group C Group C

    to something that would look like this:

    Group A Group B Group C Group D
    Name 1 Name 2 Name 5 Name 6
    Name 3 Name 9 Name 10 Name 7
    Name 4 Name 11 Name 8
    Name 12
    Name 13

    Thanks.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Turning 2 row table into a multi-column table

    Try this...
    With your sample data in A1:M2

    A5: Group A
    B5: Group B
    C5: Group C
    D5: Group D

    • Enter this ARRAY FORMULA, completed by Holding Down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER)
    A6: =IFERROR(INDEX($A$1:$M$1,SMALL(IF($A$2:$M$2=A$5,COLUMN($A$2:$M$2)),ROWS($6:6))),"")

    Copy A6 and paste into A7:A15
    Copy A6:A15 and paste into
    ...B7:B15
    ...C7:C15
    ...D7:D15

    You should see the results you want.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Turning 2 row table into a multi-column table

    Thank you, Ron! I was able to get this to work for me.

+ 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