+ Reply to Thread
Results 1 to 3 of 3

How To Turn Two-Way Data Table Into Pivot Table

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    928

    How To Turn Two-Way Data Table Into Pivot Table

    I want to turn two-way data table (On the left) into pivot table (like table on the right) (Without macro on this file). How?
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: How To Turn Two-Way Data Table Into Pivot Table

    Here!

    In G2

    =INDEX($A$2:$A$13,ROUNDUP(ROWS($K$2:K2)/4,0))

    In H2 -

    =INDEX($B$1:$E$1,1,COUNTIF($K$2:K2,K2))

    In I2 -

    =INDEX($B$2:$E$13,MATCH(K2,$A$2:$A$13,0),MATCH(L2,$B$1:$E$1,0))

    Drag all the 3 formulas down as required..
    Cheers!
    Deep Dave

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How To Turn Two-Way Data Table Into Pivot Table

    If you want to do it without formulas, you can use a pivot table to reverse the data. The steps may be a bit overwhelming at first, but it's not all that hard. Here is a Youtube walk-through

    https://www.youtube.com/watch?v=N3wWQjRWkJc

    If you don't see the Pivot Table Wizard in your ribbon, use the keyboard shortcut Alt-D-P

    Of course, with Excel 2010 and later, you can do the whole thing with a few clicks if you have Power Query, a free add-in from Microsoft for Excel 2010 and 2013, and built into the Excel 2016 Data ribbon. The steps would be

    - load the table into the Query Editor window
    - set first row as header (if it isn't correct already)
    - select the first column and click "Unpivot other columns"
    - save and load to workbook

    Power Query rocks.

    cheers, teylyn

+ 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. [SOLVED] VBA code to turn data into pivot table and then into pivot chart
    By Faintkitara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2015, 09:05 PM
  2. Programme to turn downloaded data into a form that's recognised by pivot table
    By suesein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2014, 03:49 AM
  3. How to turn off a filter in a pivot table - excel 2003
    By cf7046 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-29-2013, 11:47 AM
  4. How to turn off Pivot Table subtotaling and other edits
    By riwiseuse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 04:20 AM
  5. Return pivot table range...not the data table, the PIVOT TABLE!
    By Air_Cooled_Nut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2008, 01:07 PM
  6. [SOLVED] How do you turn off pivot table auto format in Excel?
    By srudd in forum Excel General
    Replies: 3
    Last Post: 11-30-2005, 12:40 AM
  7. Pivot Table - 3 columns turn-around-times
    By William Elerding in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2005, 04: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