+ Reply to Thread
Results 1 to 3 of 3

Combining 2 pivot tables into 1 chart

  1. #1
    Registered User
    Join Date
    12-10-2015
    Location
    Michigan
    MS-Off Ver
    2010
    Posts
    52

    Combining 2 pivot tables into 1 chart

    Hello, I was wondering if there is a way to combine 2 pivot tables into 1 pivot chart. I cannot get this data to combine. Any help would be awesome!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Combining 2 pivot tables into 1 chart

    Delete duplicate post.
    Last edited by dflak; 04-05-2016 at 09:40 AM.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Combining 2 pivot tables into 1 chart

    If you don't mind doing a bit of a two-step, you can make this happen. I reproduced the pivot tables on Sheet5 and reformatted them. I used helper columns in Columns F and M to make "composite keys" of the Month and Year.

    I highlighted the range J6:M50 and gave it a static name: Sales_Data.

    In Column G, I look up the sales data: =INDEX(Sales_Data,MATCH(F6,(Sales_Data M:M),0),3) ... The (Sales_Data M:M) gets the intersection of the two ranges: Sales_Data and Column M:M. In other words, Column M:M from rows 6 to 50.

    All helper columns are extended down to row 50. This should keep you going for a couple of years.

    Then I made a series of named dynamic ranges.
    Plot_Basic =OFFSET(Sheet5!$C$6,0,0,COUNTA(Sheet5!$C:$C)-2,1)
    Plot_Battery =OFFSET(Plot_Basic,0,1)
    Plot_Date =OFFSET(Sheet5!$A$6,0,0,COUNTA(Sheet5!$A:$A)-2,2)
    Plot_KGO =OFFSET(Plot_Basic,0,2)
    Plot_Sales =OFFSET(Plot_Basic,0,4)
    Sales_Data =Sheet5!$J$6:$M$50

    See this article to see how to make named dynamic ranges: http://www.utteraccess.com/wiki/inde...Dynamic_Ranges.

    I then assigned these ranges to a chart. See this article on dynamic charting: http://www.utteraccess.com/wiki/inde...namic_Charting.

    As long as the complete set of data doesn't extend beyond row 50, you should be good. When you refresh the pivot tables on Sheet7 these pivot tables should also refresh since they are built from the same source data. The dynamic ranges will stay up with the plotting.
    Attached Files Attached Files

+ 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. Combining two tables into a pivot
    By c.drysdale89 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-04-2016, 07:33 AM
  2. Combining Pivot Tables
    By BradP in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-15-2014, 10:10 AM
  3. Combining of 3 Pivot Tables' datas into 1.How?
    By PRADEEPB270 in forum Excel General
    Replies: 1
    Last Post: 11-11-2012, 04:00 AM
  4. Combining tables into one pivot table
    By doubl3d80 in forum Excel General
    Replies: 0
    Last Post: 03-20-2012, 01:35 PM
  5. Replies: 2
    Last Post: 08-16-2010, 06:40 PM
  6. [SOLVED] Combining 2 pivot tables
    By RestlessAde in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 09:05 PM
  7. Replies: 1
    Last Post: 05-18-2005, 06:06 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