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: Editing PivotTables without Underlying Data.
by Allen Wyatt
(last updated November 14, 2015)
Stephen works with workbooks that originate with other people in his company. These workbooks regularly have PivotTables in them. It seems that Stephen cannot edit some of the PivotTables, instead getting an error message that says the "underlying data was not included." This is a bit confusing, since Stephen received the entire workbook.
Normally this error occurs not when the underlying data is not present in the workbook, but when the underlying data cache is not saved with the PivotTable. This is usually done in an attempt to create a smaller file when the workbook is saved.
In order to edit the PivotTable, try simply refreshing the data (right-click the table and choose Refresh Data). If this doesn't work, or if you want to eliminate the message entirely, then you can follow these steps:
You should note that when this option is selected, the file size of your workbook can be significantly larger than if the option is not selected. This is a tradeoff, however, as the PivotTable should display quicker since it is working with the data in the cache.
If these techniques don't work, it could be because the underlying data for the PivotTable really isn't in the workbook. If you poke around in the workbook and cannot find the data, then it could be that the data was being pulled from an external source—outside of Excel. If this is the case (you will need to check with the PivotTable's author to verify this) and if the PivotTable options have been set to not save the cache, as previously described, then you won't be able to make edits.
If you determine that this is the case with your situation, then you'll need to have the original author again generate the PivotTable and make sure that the Save Data with Table Layout option is checked.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3295) 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: Editing PivotTables without Underlying Data.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Wish there was a way to define how you want PivotTables formatted before you actually create the PivotTable? You may be out ...Discover More
PivotTables are great for digesting and analyzing huge amounts of data. But what if you want part of that data excluded, such ...Discover More
Create a complex PivotTable and you may find that your system slows to a crawl. The reason for this may be due to the way in ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.