How to Fix Pivot Table Not Refreshing Issues in Excel

When we add or change some data in our data source, we need to refresh the pivot table to update the data in the pivot table. Sometimes, even after refreshing the page, the pivot table does not update, and the data remains unchanged. It might even show an error and refuse to refresh the pivot table. In this article, we will go through the reasons why the pivot table is not refreshing in your worksheet and provide solutions to all of those issues.

Key Takeaways

➤ Click on a cell of the pivot table and go to the PivotTable Analyze tab in the ribbon, and select Change Data Source from the Data section.
➤ Change the data source to add the new rows/columns for the pivot table.
➤ Press OK to confirm and check the pivot table for new data.

overview image

There could be a lot of reasons why the pivot table refuses to refresh properly. To learn about the possible solutions to those issues, read the full tutorial below.

Download Practice Workbook
1

Refreshing Does Not Add New Data to the Pivot Table

To demonstrate the issue, we have a data range with some retail transactions data. There are transaction IDs, customer names, sold items, the amount of money earned from selling those items, and the cities those items were shipped to.

Refreshing Does Not Add New Data to the Pivot Table

Then we created a pivot table using the data, which looks like this:

Refreshing Does Not Add New Data to the Pivot Table

Let’s add some more data and refresh the pivot table.

➤ After those 10 transactions, two more transactions happened. We added those in the source data table.

Refreshing Does Not Add New Data to the Pivot Table

➤ Now let’s right-click on the pivot table and hit Refresh.

Refreshing Does Not Add New Data to the Pivot Table

➤ However, the pivot table remains the same, and the new transactions are not included. We have to fix that.

Solution 1: Use a Proper Table as the Data Source

The issue is that when we created the pivot table, we only selected the entries that were recorded at that time. The pivot table will only look through the cells that it is aware of, not the new cells that we add. To overcome this issue, we can convert the source dataset to a table. Then, when we add new data to the table, the table will be updated, and the pivot table will follow the regular table.

➤ Select the source dataset and press  Ctrl  +  T  .

Refreshing Does Not Add New Data to the Pivot Table

➤ Press OK to create the table.
➤ Now go to the pivot table and select a cell so that we can customize the table.
➤ Find the PivotTable Analyze tab in the ribbon, and click on Change Data Source from the Data group.

Refreshing Does Not Add New Data to the Pivot Table

➤ Select the table (Named Table1 in this case) and press OK.

Refreshing Does Not Add New Data to the Pivot Table

➤ Now the pivot table should be updated with the new data. Next time you add more data to the table, the pivot table will include it as well when you refresh it.

Refreshing Does Not Add New Data to the Pivot Table

Solution 2: Use a Data Name

If we don’t want to create a regular table, we can create a data name that we will use as a variable for the pivot table. We will need to use a function for that as well. Follow the steps below:

➤ In the sheet where the source dataset belongs, go to the Formulas tab and select Define Name from the Defined Names group.

Refreshing Does Not Add New Data to the Pivot Table

➤ In the Name section, write Dataset, and in the Refers to section, write the following formula:

=OFFSET(Data!$A$1,0,0,COUNTA(Data!$A:$A),COUNTA(Data!$1:$1))

Refreshing Does Not Add New Data to the Pivot Table

Explanation
The OFFSET function returns a range of cells using the parameters. Here, the first parameter is the cell where the range starts, which is $A$1 here. The next two parameters are the rows and columns. Those are set to 0 so that we can start from the beginning. The last two parameters are the height and width. The height counts the rows using the COUNTA function, and the same function is used to count the columns for the next parameter.

➤ Press OK to add the Name.
➤Go to the pivot table, and head to PivotTable Analyze > Change Data Source. Then, change the source to Dataset.

Refreshing Does Not Add New Data to the Pivot Table

➤ From now on, the pivot table will refresh properly after you add anything to your dataset.

Refreshing Does Not Add New Data to the Pivot Table


2

Refreshing Does Not Change the Existing Data

We know that a pivot table will not pull new data if not specified, but it should refresh the existing data. However, that might not be the case every time. See the example below:

➤ We are changing the D4 cell, and making the Amount 30 instead of 25.

Refreshing Does Not Change the Existing Data

➤ Moving back to the pivot table and pressing  Alt  +  F5  does nothing; the transaction is not visible.

Refreshing Does Not Change the Existing Data

Solution: Remove the Filters

The fix for the issue is just removing the filters. It had filters that did not let the target cell be shown in the pivot table. We need to remove the filters to see the changes.

➤ When you have the pivot table selected, go to the Data tab in the ribbon.
➤ From the Sort & Filter group, select the Clear button.

Refreshing Does Not Change the Existing Data

➤ Now the changes are visible on the pivot table.

Refreshing Does Not Change the Existing Data


3

PivotTable Field Name is Not Valid

While refreshing the pivot table, Excel can throw an error that says “The PivotTable field name is not valid”. Check the demonstration below:

➤ Go to the PivotTable Analyze tab and select Refresh from the Data group.

PivotTable Field Name is Not Valid

➤The following error should show up:

PivotTable Field Name is Not Valid

Solution 1: Check for Column Errors

There could be two issues in the columns of the source data. We will fix both of them in this section.

➤ One issue could be that the column headers are merged. Look at the following image:

PivotTable Field Name is Not Valid

➤ While you have the cell selected, go to the Home tab, and select Unmerge Cells from the Alignment group.

PivotTable Field Name is Not Valid

➤ Another issue could be that the column header went missing for some reason, like the image below:

PivotTable Field Name is Not Valid

➤ For this case, the issue is that we had a merged cell, and after unmerging, we have to restore the header to fix this issue.

PivotTable Field Name is Not Valid

➤ Now, if you refresh the pivot table, it will work properly.

Solution 2: Look for Missing Data Source

Another issue can be that the data that was used to create the pivot table is missing. You have to restore the data to the original location to fix the issue.

➤ Go to PivotTable Analyze > Change Data Source.

PivotTable Field Name is Not Valid

➤ Now, the pivot table will show you where your data is supposed to be:

PivotTable Field Name is Not Valid

➤ Add the data to this source, or change the source to get the pivot table working again.


4

Overlapping Pivot Tables

In order to show what the issue can look like, we are adding two pivot tables in the same sheet.

Overlapping Pivot Tables

➤ After adding more transactions to the first table, try to refresh it by pressing  Alt  +  F5  . The following error should show up:

Overlapping Pivot Tables

➤ The issue is that the pivot tables are overlapping with each other when the data is updated. We cannot have one pivot overlapping another.

Solution: Move the Pivot Table to Another Place

We need to move the second pivot table to a location where it cannot cause conflict with another one. Follow the steps below:

➤ Select the pivot table that is below the original table, and go to PivotTable Analyze > Actions > Move PivotTable

Overlapping Pivot Tables

➤ Select a different location and press OK.

Overlapping Pivot Tables

➤ Now, if you refresh the pivot table, it will work properly.

Overlapping Pivot Tables


Frequently Asked Questions

Why is my PivotTable still showing old data?

Whenever you add new data to your source dataset, you must refresh the pivot table to make the new data show up. Pivot tables do not automatically refresh each time you add data to the source table. However, you can set it to refresh every time you open your workbook.

Why is my PivotTable not showing totals?

The totals are probably hidden from the pivot table. You can enable them by going to the Design tab in the pivot table and finding the Subtotals and Grand Totals icons from the Layout group. Choose Show all Subtotals at Bottom/Top of Group and On for Rows and Columns.

How to reset PivotTable data?

Click on the pivot table, and go to the PivotTable Analyze tab on the ribbon. Then, from the Actions group, choose Clear > Clear All. The pivot table will be reset, and you can customize the table as a new one.

Why don’t pivot tables update automatically?

In most cases, pivot tables are created with a lot of CSV data. If the pivot table is updated automatically when the real-time CSV data changes, it would be impossible to work with the pivot table because of the changes. Moreover, the worksheet will be laggy because it has to process everything in the background. That is why pivot tables are not updated automatically.

How to update a PivotTable with new columns?

Go to the PivotTable Fields panel and select the new columns from the checklist. You can also drag the columns to the specific areas at the bottom. If the panel does not show up, right-click on the pivot table and select Show Field List.


Wrapping Up

In this article, we have learned all possible issues and solutions regarding pivot tables not refreshing. If you have more difficulties dealing with the pivot table refresh situation, let us know in the comments section. Don’t forget to download the practice file provided with the article. See you soon in another article.

ExcelInsider Team
We will be happy to hear your thoughts

Leave a reply

Excel Insider
Logo