Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Pointing PivotTables to Different Data.

Pointing PivotTables to Different Data

Written by Allen Wyatt (last updated December 4, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003


Joe uses PivotTables a lot at his company. In creating the PivotTables they would use one workbook for the PivotTables that were generated based on source data in a second workbook. In working with the PivotTables they needed a way to quickly "re-point" their pivot cache to a different data source. Unfortunately they found that re-pointing one PivotTable to a different source workbook only created a second pivot cache, thereby causing a much larger PivotTable workbook and a slower response time in Excel. They needed to actually re-point each PivotTable to the new data source before the old pivot cache would disappear, and some of the workbooks had over 50 PivotTables!

They found a solution, however, that allowed them to very easily make the switchover to the new data source. Assume, for the sake of this tip, that File1 is the workbook containing the PivotTables, File2 is the current data source workbook, and File3 is the new data source workbook. Further, all the PivotTables in File1 share the same pivot cache which, in turn, points to the data in File2. These are the steps they took to switch everything over so File1 finally pointed to File3:

  1. Rename the File3 to something else, such as File3Real.
  2. Open File1 in Excel.
  3. Open File2 in Excel.
  4. With File2 displayed, press F12. Excel displays the Save As dialog box.
  5. Save the file using the File3 name. Since File1 is also open, Excel automatically repoints the pivot cache (and hence all the PivotTables in File1) to File3.
  6. Close File3.
  7. Save and Close File1.
  8. Outside of Excel, delete the File3 workbook created in step 5.
  9. Rename the File3Real workbook with the name File3.

That's all there is to it; File3 is now the new data source for the PivotTables in File1. As well, any fields that do not exist in File3 will also be removed from the PivotTable reports when you next open File1.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8263) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Pointing PivotTables to Different Data.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Showing Filter Criteria on a Printout

When you print out a filtered worksheet, you may want some sort of printed record as to what filtering was applied to the ...

Discover More

Referencing the Last Six Items in a Formula

If you have a list of data in a column, you may want to determine an average of whatever the last few items are in the ...

Discover More

Formatting Multiple Documents

Need to format a bunch of documents so they all look the same? If the documents use styles, doing the formatting is ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (menu)

Can't Update Excel 2007 PivotTables in Excel 2003

If you create a PivotTable in Excel 2007, you may have problems editing or updating that PivotTable in Excel 2003. The ...

Discover More

Weighted Averages in a PivotTable

PivotTables are used to boil down huge data sets into something you can more easily understand. They are very good simple ...

Discover More

Removing Subtotals from Many PivotTable Fields

Need to get rid of pesky subtotals from your PivotTables? It's easy to do by applying the macro highlighted in this tip.

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.