+ Reply to Thread
Results 1 to 5 of 5

Quick way to pivot table this set of data

  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Quick way to pivot table this set of data

    Hi all, does anyone have any idea how I can pivot this set of data quickly?

    The tedious part is dragging the individual years to the value field, then selecting average as the value field setting for each year because it defaults to 'sum' automatically.

    It's a real pain having to click 30+ times if I want data from 1980 to 2015. The file is pretty big so it's stored here

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Quick way to pivot table this set of data

    Can you unpivot the data, which changes your data from a cross tab to a table, then create a pivot table to get what you need?
    Here's an article on using Power Query to do it:
    https://support.office.com/en-sg/art...rs=en-SG&ad=SG

    Hope this helps!

  3. #3
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Quick way to pivot table this set of data

    Hey there it works great! But, after having unpivoted the columns and loaded it back in Excel, I discovered errors but can't determine why

    There are some "NA"s in the fields but I replaced them with the number 0 but the errors still appear.

    Any help is appreciated!

    Thanks

  4. #4
    Registered User
    Join Date
    06-30-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Quick way to pivot table this set of data

    It works great! Solved when I removed the text NA from the fields - didn't know power query couldn't handle them.

  5. #5
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Quick way to pivot table this set of data

    So glad this worked for you - and if I've helped you, please consider clicking the ADD REPUTATION star : )
    Last edited by candybg; 08-29-2015 at 06:54 AM.

+ 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. Quick macro to group (and name) data in pivot table
    By Faintkitara in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2015, 08:35 PM
  2. quick way to fix description variances in pivot table
    By rs1aj in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-21-2014, 10:21 AM
  3. Quick Pivot Table Help - Count and group Multiple Dates
    By jmcconville18 in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 10-15-2014, 11:44 AM
  4. Replies: 1
    Last Post: 06-22-2010, 09:10 AM
  5. Replies: 1
    Last Post: 06-20-2010, 04:00 AM
  6. Replies: 5
    Last Post: 12-15-2006, 06:45 PM
  7. Quick Question - Pivot Table Data
    By Michael Lockwoo in forum Excel General
    Replies: 1
    Last Post: 02-22-2006, 11:35 AM

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