Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Editing PivotTables without Underlying Data.

Editing PivotTables without Underlying Data

Written by Allen Wyatt (last updated September 4, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

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:

  1. Right-click the PivotTable. Excel displays a Context menu.
  2. Click PivotTable Options. Excel displays the PivotTable Options dialog box.
  3. Make sure the Data tab is displayed. (See Figure 1.)
  4. Figure 1. The Data tab of the PivotTable Options dialog box.

  5. Make sure the Save Source Data with File option is selected.
  6. Click OK.

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 Source Data with File option is checked.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10089) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Editing PivotTables without Underlying 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

Consistent Formatting Between Word Versions

When you upgrade from one version of Word to another, you may be surprised to find that your documents, all of a sudden, ...

Discover More

Running Macros from Macros

Need to run one macro from within another macro? You can easily do it by using the Run method of the Application object, ...

Discover More

Ranges on Multiple Worksheets

Referring to a range of cells on the current worksheet is easy. But what if you want to refer to a range on a number of ...

Discover More

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!

More ExcelTips (ribbon)

Empty PivotTable Cells Don't Show as Blank

You can configure Excel so that it displays special text within blank PivotTable cells. Here's how to make the changes ...

Discover More

Pointing PivotTables to Different Data

Changing the data source PivotTables go to can be a bit tricky. This tip explains what can happen when you re-point your ...

Discover More

Expanding PivotTable Rows to Sheets

PivotTables are a great way to work with large quantities of data in an intelligent manner. Sometimes, however, you just ...

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?

2021-09-04 11:20:42

Philip

In a number of cases the source data are just in a different workbook, not accessible to the recipient of the pivot. This is often (in my case) intentional to provide the user with a sliced subset of information without granting access to all of it … a great and easy way to build in some kind of “confidentiality” without complicated protections …


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu 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.