+ Reply to Thread
Results 1 to 8 of 8

Converting multiple columns into multiple rows

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Converting multiple columns into multiple rows

    I apologize in advance for any incorrect use of terminology or lack of explanation... I am fairly new to all of this.

    **FILE ATTACHED TO THREAD (2 TABS)**

    I am needing to convert a 2 column report into a report with one horizontal heading (from Original-Column A) and their corresponding rows (Original-Column B). There is not a constant number of rows to separate them. The only way I can see to break them up is by Column A, Line Name to the Sub-Type Mod, prior to the next Line Name...

    It will probably make much more sense seeing the file included...

    Thanks!
    Attached Files Attached Files
    Last edited by papagrande3; 08-20-2010 at 01:14 AM.

  2. #2
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: Converting multiple columns into multiple rows

    Will the row in Original always follow the same sequence?

  3. #3
    Registered User
    Join Date
    08-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Converting multiple columns into multiple rows

    Count-wise, no it doesn't. That is the main issue that I am having in formulating it. The number of rows that contain "Sub-Type Mod" following "Line Name", varies throughout all 250,000 + entries I need to do.

  4. #4
    Registered User
    Join Date
    08-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Converting multiple columns into multiple rows

    However, the only 2 entries for Column A will be one of those 2, "Sub-Type Mod" or "Line Name"...just not in any specific sequence

  5. #5
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: Converting multiple columns into multiple rows

    Ok, not the same sequence is fine but the "Sub-Type Mod" always follow the subsequent "Line Name" correct? They won't be seperated right?

  6. #6
    Registered User
    Join Date
    08-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Converting multiple columns into multiple rows

    Yes, that's correct.

  7. #7
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: Converting multiple columns into multiple rows

    Add a module and run the following macro.


    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Converting multiple columns into multiple rows

    lazyme,

    You are absolutely amazing!!! Thank you so much! I tried it out on a small portion, containing around 3000 entries. They came out EXACTLY as I needed!! That module will be used a great deal. (~250,000 total entries) This will save me a tremendous amount of work.

    I have never used Macro, so this was completely new to me...Took me a while to figure out the basics..however, it was an awesome learning experience. I will definitely be reading up on it some more and I definitely intend to use it much more often. Thanks again for everything!!!!!

+ 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