+ Reply to Thread
Results 1 to 5 of 5

Convert Rows to a Table

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Oakland, CA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Convert Rows to a Table

    Hi everyone,

    I need help with creating a macro that basically turns the data into a pivot table - but because there are nuances and it needs to be done quickly and frequently, it has to be a macro.

    If you look at the Input worksheet, you'll see the first section has the data that needs to be a table. The headers of the table are in the Output tab and they will be fixed, so they won't really change. It needs to spread the values based on the Number and Date.

    The key is that there may be extra "Metrics" that don't fall into one of the headings in the Output tab - these entries can be ignored. Then there are extra headers in the "Output" tab that there may not be entries for, these can use the default table in the "Input" tab (L2:M8).

    Let me know if I need to rephrase this.

    As always, I really appreciate everyone's help, thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Convert Rows to a Table

    Hi Seraph,

    Have a look at the enclosed solution. I have tried to add a lot of documentation so you will be able to maintain and adjust the solution yourself.

    Run routine "BuildOutputTable"
    Attached Files Attached Files
    If you like my contribution click the star icon!

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Convert Rows to a Table

    See attached file, I used this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    Oakland, CA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Convert Rows to a Table

    Hi both!

    I'm extremely thankful for both of your quick replies! I will analyze them both as soon as I can but I wanted to say thank you!

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    Oakland, CA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Convert Rows to a Table

    Hi OllieB and antoka05,

    Thank you greatly for your solutions, they both appear to work greatly. I might have questions in the future because my input data may change, but this certainly solves my problems for now!

+ 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