+ Reply to Thread
Results 1 to 2 of 2

Convert Matrix to multi column list

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    1

    Convert Matrix to multi column list

    Hello everyone,

    I'm looking for a VBA code that allows me to convert a matrix of 10 columns and undefined number of rows to a 4 column list.

    the first column are my customers, the second are my products and my first row are the 8 different packages we have. The matrix shows which volume a certain customer would want to buy from a certain product in a certain package. So I will receive input from arround 30 customers telling me which of the 300 products they want to buy in which package.

    I would just need a VBA code to convert this matrix to a list, so I can run a Pivot Table on it. It can be that there are empty cells in this matrix, they don't have to be included in the list.
    I use Excell 2010.

    The matrix is located in a seperate sheet ("Master data") and the list should be shown in another sheet ("Tidy Data")

    To give you an idea how the matrix looks like:

    Package 1 Package 2 Package 3 Package 4 Package 5 Package 6 Package 7 Package 8
    Customer A Product A
    Customer A Product B
    Customer A Product C
    Customer A Product ...
    Customer B Product A
    Customer B Product B
    Customer B Product C
    Customer B Product ...
    ...

    I hope someone can help me!

    Thanks,

    Nick


    I just found the solution.

    Below you can find the code


    Please Login or Register  to view this content.
    Last edited by arlu1201; 10-12-2012 at 07:37 AM. Reason: found solution

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Convert Matrix to multi column list

    Thank you for providing the solution.

    In future, please add code tags whenever you add vba code to your post. I have added code tags to your post, this time. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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