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

Clearing the Undo Stack in a Macro

When writing a macro, you may need a way to clear the undo stack. This can be done with a single command, as described in ...

Discover More

Creating a Plus/Minus Button

Want a quick way to convert positive values to negative and vice versa? You can create your own plus/minus button by ...

Discover More

Selecting the Entire Document with the Mouse

Want a quick way to select your entire document without taking your hand off the mouse? Try clicking away using the ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (menu)

Excluding Zero Values from a PivotTable

If you are using a data set that includes a number of zero values, you may not want those values to appear in a ...

Discover More

Conditional Formatting in PivotTables

Conditional formatting is very powerful, and you can use it to dynamically adjust how your data looks. Excel allows you ...

Discover More

Missing PivotTable Data

Wonder what happened to the data behind a PivotTable? It could be in a number of places, and tracking it down could be a ...

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 nine minus 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.