+ Reply to Thread
Results 1 to 31 of 31

Consolidate Pivot tables wth similar data

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Consolidate Pivot tables wth similar data

    Hi Everyone,
    Thanks for taking the time to read this.
    I have a workbook that has several pivot tables based on tanks needed per day/week for each depot's plans. I would like to have a master sheet that consolidates all these pivot tables.
    I.E. One pivot table shows, 21/12 - There are 2 x 288 tanks needed at Tadcaster (Tadcaster plan) and another shows 21/12 - 3 x 288 tanks needed at Tadcaster (Royal's plan). I would like the master table to show 5 x 288 tanks are needed at Tadcaster on 21/12.

    Thanks

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    Hi,

    Are all the pivots based off the same source table or do you have one source table for each plan?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Hi,
    I have one source table per plan. The file is too big to attach.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    Can you change that so that all the data is in one table? Otherwise it will make your desired goal much harder to achieve.

  5. #5
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Hi,
    I am not sure how I would go about that. Each source table is composed using formulae that pulls data from the pasted plan. Then the week after the next plan will be pasted in below it (to make it a rolling tracker). I have made a really simple version to try and show you. Each plan is on a seperate tab and then there is a summary sheet with all the pivot tables on.
    If I copy the the tables next to each other will that work?
    Attached Files Attached Files

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    I fear that is really not a good layout for the kind of reporting you want to do. Do you have Power Query available to you?

  7. #7
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    We only have Excel 2003 at work, I am lucky we have computers!
    Any other suggestions?

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    In that case, I would suggest using code to consolidate the tables into one new sheet that can then be used as the source for all the pivot tables. That way you may report on a per plan or overall basis. If you need some code for that I would require a workbook that is accurately representative of the layout you have currently though the actual data can, and should, be censored.

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    I do not seem to be able to edit my post for some reason, so I will add that if the previous workbook you posted is accurate, I can probably work with that to create a sample.

  10. #10
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Consolidate Pivot tables wth similar data

    According to me, the easiest way is if you put data (PLAN) in separate sheets. Then import the data into Acces. Create source database. By MS Query connect the data and return to the PivotTable - ready.

  11. #11
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Thanks, I would need some code please. The file is over 1MB so won't let me attach.

  12. #12
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    Do you have access to a file sharing location like Box or Dropbox?

  13. #13
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    I have drop box, I think I have managed to add it to it.

    https://www.dropbox.com/s/wwznc4hsis...20new.xls?dl=0

  14. #14
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    Thanks. I am out the door in a minute but will endeavour to take a look tomorrow.

  15. #15
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Thanks. Really appreciate your help
    Last edited by madmoo84; 12-20-2016 at 04:41 AM.

  16. #16
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    It would appear you don't have the same source data columns for each table, which complicates things a little. It may prove simplest to build a table from the pivots for each plan and use that for the consolidated pivot tables. Is it OK to either move the pivot tables so that they are always located in the same column, or to rename them for easier identification in the code?

  17. #17
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    You can move the pivot tables if that makes it easier. I just plonked them next to the plan, but it doesn't matter where they are.

  18. #18
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    OK. Do you need the data from every pivot table on each sheet?

  19. #19
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    I just need one table on a separate sheet, that has the data from every pivot table (I think that's what you are asking!)

  20. #20
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    OK. Here is your workbook with some code to create a summary table, which I have attached to your refresh pivot tables button. It collates all the data from the other pivot tables into a summary pivot data sheet and then refreshes the first pivot table on the Summary worksheet, which I have updated to include the location and plan information.

    https://drive.google.com/file/d/0Bxr...ew?usp=sharing

    Let me know if you have any questions.

  21. #21
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Thanks, will take a look and give it a test and let you know!

  22. #22
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    When I paste on new data, the dates are reversed on the summary pivot data sheet. i.e. sowing as the 12th Apr, May, June, July instead of 4th,5th,6,th &7th of Dec. Have I done something wrong?

    https://www.dropbox.com/s/jz9zik7m96...20new.xls?dl=0

  23. #23
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    No- that is my fault. Please amend the code in Sheet1 to this version
    Please Login or Register  to view this content.
    which should fix the problem with the dates converting to US format in the code.

  24. #24
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    I replaced the code for the code above, coming up with runtime error '13' Type Mismatch.

  25. #25
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    On which line? I have tested it a couple of times without error on the file you linked to just now.

  26. #26
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Oh, ok, I am going to try it again!

  27. #27
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Is it something do with the version of Excel?

    It's 2003 at work where I need this sheet for.

  28. #28
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    It shouldn't be version dependent that I can think of. Where is the error occurring?

  29. #29
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Not sure
    I get this...

    Untitled1.jpg
    Attached Images Attached Images

  30. #30
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Consolidate Pivot tables wth similar data

    It looks like you're running that over Citrix? Do you have direct access to a machine with 2003 on it?

    I don't think I currently have 2003 installed on a VM anywhere for testing.

  31. #31
    Registered User
    Join Date
    01-16-2014
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Consolidate Pivot tables wth similar data

    Yes, we have to log on through Citrix.
    I have 2010 on the desktop and it seems to be ok on that.

+ 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. Need Pivot tables to consolidate constantly changing data.
    By Whingered in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 01-25-2013, 09:29 AM
  2. Consolidate Multiple Data Tables
    By dangermouse1981 in forum Excel General
    Replies: 5
    Last Post: 07-15-2011, 12:04 PM
  3. Consolidate existing Pivot Tables to use one cache
    By 4am in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2011, 01:27 PM
  4. Consolidate two pivot tables
    By ekat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2010, 11:46 AM
  5. Creating multiple pivot tables for similar data
    By shockeroo in forum Excel General
    Replies: 2
    Last Post: 03-31-2010, 11:05 AM
  6. [SOLVED] Consolidate Pivot Tables
    By JS in forum Excel General
    Replies: 1
    Last Post: 06-30-2006, 02:50 PM
  7. [SOLVED] how do I consolidate multiple pivot tables into one pivot table?
    By pkahm in forum Excel General
    Replies: 0
    Last Post: 04-20-2006, 04:50 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