+ Reply to Thread
Results 1 to 4 of 4

How to make Pivot Table from data with multiple layers

  1. #1
    Registered User
    Join Date
    11-09-2009
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    91

    How to make Pivot Table from data with multiple layers

    Does anyone know of an easy way to make a pivot table from a data table that has layers of data? So I have this system that pumps out multilayer data, but unfortunately for me, this data comes out in one column, so when I try to make a pivot table to analyze the data, it does not work with a pivot table.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: How to make Pivot Table from data with multiple layers

    Are you getting an error message "data source reference is not valid"?

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-09-2009
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: How to make Pivot Table from data with multiple layers

    No error message, but the data cannot be displayed in the pivot table as I would like. So I would like to have a pivot table where I can have the amounts laid out by month, and type of fruit or vegetable, but since there is a hierarchy for those items, that data is not laid out in a way that allows for use in a pivot table.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: How to make Pivot Table from data with multiple layers

    I understand now. I have a thought but don't know how much work it will be because I don't the magnitude of your file categories.

    I would build a table of the items that you want to pivot, ie. cucumbers, tomatoes, etc. Give each one a unique number in a cell to the left. 1, 2, 3, etc. For the items having sums or totals, ie. Fruits, Vegs, etc. give them a unique number also, but make it something like 5001, 5002, etc.
    Once this table has been created, you can use it over again. It is only a one time event with only maintenance of new items.

    Now in your main table, insert a column to the far left of your table. Do a vlookup to return the numbers in your second table. Once you have completed this, do a sort of the table on the unique numbers. All your summary items like Fruits, Vegs, Produce, etc. will now be at the bottom of your table.

    Create your pivot table based upon only the items you have at the top of the table.

    A bit of work, but it may be worth it.

    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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