+ Reply to Thread
Results 1 to 7 of 7

transpose data from columns to rows by groups

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Belmont, MA
    MS-Off Ver
    Excel 2007
    Posts
    8

    transpose data from columns to rows by groups

    I would like to transpose data from columns to rows by groups.
    Example:

    Building Descr Benefit Program 1st SEQ Last SEQ Total
    ABU XXXXXX University Concessions NOH 1 1 1
    ABU XXXXXXXXU Suite/Club/Cater NOS 1 4 4
    AMG1 XXXXXXXX Admin NOH 2 8 7
    AMG1 Mgmt XXXXX Admin NOS 5 10 6
    AMG2 Club House NOH 9 11 3
    AMG2 Mgmt Security & Surveillance NOS 11 12 2

    I want to take this and transpose it to:

    Building Descr Benefit_Program 1st_SEQ Last_SEQ Total Descr2 Benefit_Program2 1st_SEQ2 Last_SEQ2 Total2
    ABU XXXXXX University Concessions NOH 1 1 1 Mgmt XXXXXX Suite/Club/Cater NOS 1 4 4
    AMG1 XXXXXX Admin NOH 2 8 7 Mgmt XXXXX Admin NOS 5 10 6
    AMG2 Club House NOH 9 11 3 Mgmt Security & Surveillance NOS 11 12 2

    Some of the groups Building groups have up to 4 entries so I would continue the column headers above.

    Any suggestions?

    Thank you

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: transpose data from columns to rows by groups

    Please attach a sample book with a desired result

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    Belmont, MA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: transpose data from columns to rows by groups

    Here is a attached sample workbook with a result worksheet.

    Thank you
    Attached Files Attached Files
    Last edited by Cutter; 10-15-2012 at 05:23 PM. Reason: Removed whole post quote of self

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: transpose data from columns to rows by groups

    I am sure Mike will do much better solution than mine full of Ifs statements.

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: transpose data from columns to rows by groups

    Give this a try

    Please Login or Register  to view this content.
    Last edited by mike7952; 10-15-2012 at 05:58 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: transpose data from columns to rows by groups

    Please Login or Register  to view this content.



  7. #7
    Registered User
    Join Date
    10-11-2012
    Location
    Belmont, MA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: transpose data from columns to rows by groups

    Thanks Mike7952 and snb. The both work great and add to my understanding of vb for excel.

+ 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