+ Reply to Thread
Results 1 to 6 of 6

Advanced transpose - moving the header to the row.

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2003
    Posts
    3

    Advanced transpose - moving the header to the row.

    Hi i would take to go from this form:

    x1 x2
    y1 a b
    y2 c d

    to this form. In some kind of automated procces since i have many (many!) rows and coloumns:

    y1 x1 a
    y1 x2 b
    y2 x1 c
    y2 x2 d

    What is this process called? And can it be done painless in excel? Or should i rather do it in SAS/SPSS/Stata?
    Attached Files Attached Files
    Last edited by bonna; 05-09-2011 at 02:25 PM. Reason: typo

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Advanced transpose - moving the header to the row.

    Don't ask me why it works, but it does

    Give your first column a heading

    Excel's PivotTable Wizard

    1) Start the wizard -- Data/PivotTable & PivotChart Report...

    2) Step 1 of 3 - Select Option Button: Multiple Consolidation Ranges -- [Next]

    3) Step 2a of 3 - Select Option Button: I will create the page fields -- [Next]

    4) Step 2b of 3 - With your cursor in the Range Textbox, select the data range on your sheet that you want to normalize -- [Add] -- [Next]

    5) Step 3 of 3 - [Layout...]

    6) Drag the Row and Column buttons OFF the Layout -- [OK] -- [Finish]

    7) Mysteriously, you are on another sheet that has a 4-cell pivot table. Double click the BOTTOM RIGHT CELL

  3. #3
    Registered User
    Join Date
    05-09-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Advanced transpose - moving the header to the row.

    I think the method is correct (Multiple Consolidation Ranges), but for some strange reason this option has not been added to Excel:Mac 2011. So this i unfortunatly not an option for me. Do you have any other suggestions, maybe a macro?

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Advanced transpose - moving the header to the row.

    Not really - It would be nice though if in the future you added that you were looking for a Mac solution
    Best add it and to your title, and to your MSoffice version

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

    Re: Advanced transpose - moving the header to the row.

    In VBA:

    Please Login or Register  to view this content.



  6. #6
    Registered User
    Join Date
    05-09-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Advanced transpose - moving the header to the row.

    Thanks, that was exactly what is was looking for.
    Based on some other posts, i was able to modify it such that it places the new version in a seperate sheet. And as a second step i run the "Text to Columns..." to split the columns.

    Modified VBA code:
    Please Login or Register  to view this content.
    Thx for the help.

+ 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