+ Reply to Thread
Results 1 to 3 of 3

Changing Multiple Columns into Multiple Rows

  1. #1
    Registered User
    Join Date
    01-06-2011
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Changing Multiple Columns into Multiple Rows

    Hello. I'm trying to create a macro that can change multiple columns into multiple rows. I found the following topic which was close, but I wasn't able to tweak the macro to get it to do what I wanted. http://excel.bigresource.com/Track/excel-OzKIXK1u/

    I've attached the file with an example of what I'm trying to do.

    Basically, Columns A-E would need to be duplicated 12 times. The headers from Columns F-I would need to be the values in Column F for those rows, and the values from Columns F-I should be the values for Column G and the values from columns J-M should be the values for Column H.

    The excel file demonstrates it a little better.

    This is the macro I've been trying to tweak, unsuccessfully:

    Please Login or Register  to view this content.
    Thanks,
    Tester36
    Attached Files Attached Files
    Last edited by Tester36; 01-07-2011 at 02:17 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Changing Multiple Columns into Multiple Rows

    Hi Tester36 and welcome to the forum.

    Find the attached with code that will do what I think you want. Run the code and build your new table.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-06-2011
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Changing Multiple Columns into Multiple Rows

    This was excellent. Thank you Marvin.

    I modified the code by duplicating all the lines to go up to +23 instead of +3, because I had 24 rows of data values instead of 4. Worked perfectly!

    Regards,
    Tester36
    Last edited by Tester36; 01-07-2011 at 02:17 PM.

+ 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