+ Reply to Thread
Results 1 to 4 of 4

Creating a Pivot table from data with Sub columns/headers

  1. #1
    Registered User
    Join Date
    09-26-2016
    Location
    ohio
    MS-Off Ver
    2016
    Posts
    2

    Creating a Pivot table from data with Sub columns/headers

    Having a hell of a time figuring this one out. I'm far from an advanced user, but I'm typically pretty comfortable.

    I've got some data with several different categories and need a pivot table to reflect that, such that I can filter by category of both row and column. For example: (pardon the crude attempt at formatting)

    [------][----][--------- Vegetables --------][---------- Fruit---------][----------Meat------]
    [State][City][Lettuce][Cucumber][Pepper][Apple][Orange][Peach][Beef][Pork][Poultry]
    [OH ][Cinc]
    [OH ][Tole]
    [OH ][Colu]
    [OH ][Clev]
    [CA ]
    [CA ]
    [NY ]
    [NY ]

    Ideally, I'd be able to apply the typical filter by State, but also be able to apply a filter for Food Type, which would allow me to select "OH" and "Vegetables", or what have you.

    Thanks!

    Oh, and I'm using Office 2016. That's probably important to mention.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Creating a Pivot table from data with Sub columns/headers

    Hi taketad and welcome to the forum,

    See if this attached file helps explain what you want. You need to drag two headers to the columns box in the Pivot.
    Pivot with two columns.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-26-2016
    Location
    ohio
    MS-Off Ver
    2016
    Posts
    2

    Re: Creating a Pivot table from data with Sub columns/headers

    Thanks!

    Unfortunately that's not really what I was looking for. Instead of nested categories, is it maybe possible to create sets of fields? Ultimately, all I really want is to be able to select "Vegetables" and see the data for each individual column that's categorized as a Vegetable, just like I can do with rows. I didn't think it'd be this difficult!

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Creating a Pivot table from data with Sub columns/headers

    Hey taketad,

    I'm not sure I understand what you have or want. Read / watch all these to see how excel works best with TABLES of data:

    https://support.office.com/en-US/Art...c-30c5121fb05e

+ 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. Pivot Table Data to Column Headers
    By danielex in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-05-2015, 02:39 PM
  2. [SOLVED] Pivot Table Headers Showing Up On Pages Without Data
    By ccwaskier in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-04-2015, 05:56 PM
  3. [SOLVED] Pivot Table creating numerous columns instead of summing data correctly
    By okcsteve in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 11-13-2014, 10:33 AM
  4. Replies: 0
    Last Post: 10-01-2014, 05:55 PM
  5. Replies: 1
    Last Post: 03-06-2009, 12:45 PM
  6. [SOLVED] ? Pivot Table from 3 columns of raw data with headers
    By William Elerding in forum Excel General
    Replies: 2
    Last Post: 04-03-2006, 08:15 AM
  7. Pivot table problem multiple columns and headers
    By William Elerding in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2006, 04:42 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