+ Reply to Thread
Results 1 to 2 of 2

Create pivots with numeric data in multiple columns instead on one column

  1. #1
    Registered User
    Join Date
    04-29-2015
    Location
    toronto, canada
    MS-Off Ver
    2010
    Posts
    10

    Create pivots with numeric data in multiple columns instead on one column

    Hi,

    Currently my data looks like this:
    Col1 Col2 X Y Z
    A D 20 40 60
    B E 99 25 36
    C F 14 25 48

    However, I want to be able to convert the data into one column so I can easily pivot it

    Col 1 Col2 Value
    A D X 20
    A D Y 40
    A D Z 60
    B E X 99
    B E Y 25
    B E Z 36
    C F X 14
    C F Y 25
    C F Z 48

    This is just a small example but the original data i have is about 100 rows and 200 Column. But i cant pivot it properly now because all the values are currency in the 200 columns which means in a pivot table I will have to put all the columns in the "Value" feeds and I wont have a choice to organize them into rows or columns as required.

    Please let me know if there is a macro or any other trick to do that.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Create pivots with numeric data in multiple columns instead on one column

    You could use VBA to do that, but if the data is simple enough I have used PowerQuery (a free excel addin from Microsoft that used to be named DataExplorer).

    This shows a how to:
    http://datapigtechnologies.com/blog/...data-explorer/

    Download:
    https://www.microsoft.com/en-us/down....aspx?id=39379


    Ha, so I realized I didnt have this on my new laptop, so I gave it a test run. I had some sample data that was already pivoted (like yours) so I downloaded the add-in, created the table, unpivoted the data (took 12 columns and dumped it into ONE data and ONE measure column) in less than 2 minutes.

    Super slick Add-in.
    Last edited by mikeTRON; 04-29-2015 at 11:38 AM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula or Macro to create a concise column from multiple columns
    By mremmenga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2011, 12:08 PM
  2. Replies: 0
    Last Post: 11-19-2009, 11:48 AM
  3. How do I create multiple columns within one column?
    By Jeanne in forum Excel General
    Replies: 3
    Last Post: 02-27-2006, 05:50 PM
  4. How do I create multiple worksheets from Page Pivots
    By Vinay in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2006, 12:10 PM
  5. How do I create multiple columns from a one-column list in Excel?
    By Melissa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2005, 11:05 PM

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