+ Reply to Thread
Results 1 to 22 of 22

Update pivot tables in multiple excel files

Hybrid View

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Update pivot tables in multiple excel files

    Hi,

    I want to update all pivot tables in multiple excel files.

    For example: I have 10 excel files which contains the same pivot table.

    Is it possible to update all of them without open and refresh them one-by-one?

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Update pivot tables in multiple excel files

    Hi XlapatsaS,

    You can try setting your pivots up by creating the first one, copying it & pasting to the next worksheet & so on.

    Test this by making a pivot table, copy it & paste it somewhere next to the original pivot table on the same worksheet & try making a change to the source data such as removing a few Rows of data.

    Now go to the original pivot & refresh it, you should see the second Pivot table also refreshes.

    Otherwise, you can write a Macro based on the Pivot Table number & tell it to refresh the Pivots.
    Remember you are unique, like everyone else

  3. #3
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Hi noboffinme,
    first of all thanx for your response.

    If the pivot tables are on the same excel file (even if they are in multiple sheets) I can refresh them all with the refresh button in data section.

    If they are on different files I can't refresh them all even if all the files are open.

    The pivot tables are the same cause the excel files were created by copy-paste the entire file and just rename it.

    Is it possible to create a macro (if no other way) which refresh all the files and if yes how (i'm not so familiar with macros).

    Thanx again!!!!

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Update pivot tables in multiple excel files

    Sorry I misunderstood,

    So these are totally separate Excel Workbooks with Pivots inside them?

  5. #5
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Yes, the pivot tables aren't on the same workbook.

    It's just the same source.

  6. #6
    Registered User
    Join Date
    01-17-2009
    Location
    hyderabad, india
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Update pivot tables in multiple excel files

    hi,

    I am not sure how to refresh all pivot table, if Pivot tables present in different work books (different files) are open but if these diff pivot table are not open and you need to refresh automatically when you open all pivot table, there is an option to do this.

    Right clink on the pivot table, you will find "Pivot table option" dropdown, select it and go to DATA tab and check "auto refresh on opening file" option. you need to do this in each pivot table before closing the file. when you open it you dont need to refresh it each table.

  7. #7
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Hi murarihyd,
    thanx for your answer.

    I know that feature but the db tables are very big so if the pivot table refresh automatically when I open the files it takes to much time.

    Thanx for the answer anyway!!!!

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    See you comment in #3

    The pivot tables are the same cause the excel files were created by copy-paste the entire file and just rename it.
    In that case the datasource of all the files is the same.

    In that case you are better of using 1 file, and add the differant pivot tables in that file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  9. #9
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Quote Originally Posted by oeldere View Post
    In that case the datasource of all the files is the same.

    In that case you are better of using 1 file, and add the differant pivot tables in that file.
    Hi oeldere,
    I mentioned it in another comment that the source is the same in all files.

    If I understand your comment, you tell me to have one excel workbook and different sheets in it.

    It's workable if you have 10 workbooks with 1-2 sheets, but in my case I have 10 (and it'll be over 50 in the near future) with 8-9 sheets each. So I cann't have so many sheets in only one workbook.

    In any case thank you for your response.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    Then you have to give us more information.

    How many rows and columns do you use in each sheet in each file?

    It's workable if you have 10 workbooks with 1-2 sheets, but in my case I have 10 (and it'll be over 50 in the near future) with 8-9 sheets each. So I cann't have so many sheets in only one workbook.
    Please explain what is the need for that.

    Or show us (post) 1 excelfile with a couple of sheets, without confidential information.

  11. #11
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Hi again,
    the amount of rows and columns is differnent from sheet to sheet.

    The excel files contains the codelist of all products from super market with the amount of sales of each product.
    Each workbook is for one of our store and has one sheet per month. So I have 9 sheets now and I'll have 12 at the end of the year.

    It's very difficult and takes a long time to open them one-by-one to refresh.
    So I want (if possible) to find a way to refresh them all.

    Sorry for my english. It's not my native language.
    I try to describe my situation as better as I can.

    Thanx for your time.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    You English is good (enough; at least for me).

    Each workbook is for one of our store and has one sheet per month. So I have 9 sheets now and I'll have 12 at the end of the year.
    I think you want to show cummulative values per store (you didn't mentioned, what the pivot table is showing).

    For this problem, I advice you to make just one sheet and put all month in that sheet.

    (this can be done with an macro)

    That will make it a lot easier to analyse your data with an pivot table.

    (or do you use power pivot; I'm not familiar with that tool).

    How many product do you use (50, 500, 5.000, 50.000)?

    Each sheet has > 1.000.000 rows.

  13. #13
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Sorry for not mentioned it ... yes I want to show comulative values per store.
    I want to group this values per sheet by month.
    So if I have all of the tables in one workbook at the end of the year I'll have a workbook with many sheets (stores*12).

    My final report has to be seperates workboots for each store.
    So it's not only difficult to use a worksheet with so many sheets, it's not in the terms of the report too.

    The product I use are about 15.000-20.000.
    So each sheet has about 15.000 rows.

    I think I use pivot table (I don't know what power pivot is ... i insert it into excel by excel insert tab -> pivot table -> insert pivot table).

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    Since you don't know power pivot, you did not use that tool.

    You use the also very powerfull pivot table.

    ++++++++++++++++++++++++++++++++++++++++

    12 month of data (12 * 15.000 = 180.000 rows) will fit in 1 sheet.

    Analyzing the data over 1 sheet is much easier than over differant sheets.

    So again, I will advice you to add all the data of 1 store in 1 sheet (instead of 12 sheets).

    How do the data you get in the excel file each month? (macro or copy / paste or something totaly differant)

  15. #15
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Quote Originally Posted by oeldere View Post
    How do the data you get in the excel file each month? (macro or copy / paste or something totaly differant)
    Sorry, I lost you here.
    Every sheet has one pivot-table in it (I don't copy paste datas, I just copy/paste the entire workbook).
    Do you mean how the pivot table was created?

    I understand that 12 months of data can fit in 1 sheet and I appreciate your help but the form I use is more readable/printable etc.
    So my final format has to be in the format 1 month per sheet and 1 store per workbook (orders above).
    Unfortunatelly I cannot change the form ...

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    You get better help if you post 1 (small) excel file, without confidential information (for 3 sheets).

    Please also add the pivot table based on this fictual data in your file.

  17. #17
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Hi,
    I upload a sample of the file.
    The pivot's fields are in Greek.

    This is for one store and has the three first months in sheets.

    The original file has more items and 3 measurables values from the section Sales(Πωλήσεις), the 3 measurables are Quantity(Ποσ Πωλήσεων) under the section Quantities(Ποσότητες) - Values without tax(Καθ Αξία Πωλήσεων) and value with tax(Αξία Πωλήσεων) under the section values(Αξίες).

    The foto I attached is from the original file without the values.
    Just to show you how it looks like

    So I want to have many of this files and each of them to have 12 sheets.

    Thanx
    Attached Images Attached Images
    Attached Files Attached Files

  18. #18
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    Ok now I see, you get a pivot table for each month.

    But where do you have the data stored.

    I guess that is in the same file.

    If so, 1 show you 2 examples of how I would analyze the data.

    See the attached file.

  19. #19
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Hi,
    sorry for not mentioned it before.
    The pivot table I use is sql connection. (The source is a sql BI model).

    The format of the the file is just like your first example (see the attached picture), the only difference is that the values are not similar so I don't have the total of rows.

  20. #20
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    I am not familiar with sql connection.

    I can't help you (enough) with that one.

    I hope the given examples will give you an idea (though).

  21. #21
    Registered User
    Join Date
    06-20-2014
    Location
    Greece
    MS-Off Ver
    2010
    Posts
    13

    Re: Update pivot tables in multiple excel files

    Thank you so much for your help and for your time.

    It's my fault I didn't mentioned it from the beginning.

    Have a nice day.

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Update pivot tables in multiple excel files

    Glad I could help.

    Have a nice day too.

+ 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. How to Update a Column Label for multiple pivot tables at once
    By Jayna1234 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-25-2014, 07:56 AM
  2. Can a button or drop down list link to multiple pivot tables and update them?
    By Gattaca2014 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-14-2014, 12:44 PM
  3. [SOLVED] Update source data for multiple pivot tables on same worksheet
    By Platinum3x in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-19-2013, 12:11 AM
  4. Update multiple pivot tables using a combo box in a different sheet
    By Avy14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2013, 08:53 PM
  5. Replies: 2
    Last Post: 11-28-2012, 05:43 PM

Tags for this Thread

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