To update a pivot table in Excel, you first refresh it to pull in new or changed data (right-click the pivot table and choose Refresh, or press Alt+F5 on Windows / ⌘+R on Mac). If you added new rows or columns to the source data, you must also expand the source range (via PivotTable Analyze > Change Data Source) or convert the data to an Excel Table so the range updates automatically. This article covers every way to update a pivot table, from simple refreshes to changing fields and handling common pitfalls.
Why a Pivot Table Doesn’t Update Automatically
Pivot tables are snapshots. When you create one, Excel stores a copy of the source data in the pivot cache (an internal memory structure). Any changes you make to the original data—editing a value, adding a row, deleting a column—are not reflected in the pivot table until you refresh it. This is by design: refreshing recalculates the entire pivot, which can be slow for large datasets, so Excel lets you control when it happens.
If you’ve edited a value in the source and the pivot still shows the old number, it’s almost always because you haven’t refreshed. If you’ve added new rows, a simple refresh won’t pick them up if the source range was fixed (e.g., A1:D100)—you need to expand the range or use a Table.
How to Refresh a Pivot Table (Manual and Automatic)
The quickest way to refresh a single pivot table:
- Click anywhere inside the pivot table.
- Right-click and choose Refresh, or go to the PivotTable Analyze tab (called Analyze in some versions) and click Refresh.
- Keyboard shortcut: Alt+F5 (Windows) or ⌘+R (Mac).
To refresh all pivot tables in the workbook at once, go to Data tab > Refresh All (or press Ctrl+Alt+F5 on Windows / ⌘+⌥+F5 on Mac).
For automatic refresh when the workbook opens, set the pivot table to refresh on file open:
- Right-click the pivot table > PivotTable Options > Data tab > check Refresh data when opening the file.
If your pivot table is connected to an external data source (like SQL Server or Power Query), you can set it to refresh every N minutes via Data > Queries & Connections > right-click the connection > Properties > Usage tab.
Changing the Source Data Range (When You Add Rows or Columns)
If you added rows or columns beyond the original range, a simple refresh won’t include them. You have two options:
Option 1: Manually Expand the Range
- Click the pivot table.
- Go to PivotTable Analyze > Change Data Source.
- In the dialog, update the range to include the new rows/columns (e.g., change
Sheet1!$A$1:$D$100toSheet1!$A$1:$F$150). - Click OK, then refresh.
Option 2: Convert Source Data to an Excel Table (Recommended)
If your source data is a proper Excel Table (created via Ctrl+T or Insert > Table), the pivot table automatically picks up new rows and columns when you refresh. This is the best practice because you never have to manually adjust the range again.
- Select any cell in your data range.
- Press Ctrl+T (Windows) or ⌘+T (Mac).
- Make sure the range is correct and check My table has headers.
- Click OK.
- Now, when you add a new row to the table (just type below the last row), the table expands automatically. Refresh the pivot table (right-click > Refresh) and the new data appears.
Note: If you add a new column to the table, you’ll need to refresh the pivot and then add that field to the pivot’s Values/Rows/Columns area manually.
Adding, Removing, or Rearranging Fields in the Pivot Table
Updating a pivot table also means changing which fields are displayed. This is done in the PivotTable Fields pane (usually on the right side). If it’s hidden, click PivotTable Analyze > Field List.
- Add a field: Check the box next to a field name, or drag it to one of the four areas (Filters, Columns, Rows, Values).
- Remove a field: Uncheck the box or drag it out of the pane.
- Move a field: Drag it between areas, or right-click a field in the area and choose Move Up/Down.
- Change aggregation: Right-click a field in the Values area > Value Field Settings > choose Sum, Average, Count, etc.
When you add a field, the pivot table recalculates immediately—no separate refresh needed for field changes (though if the source data changed, you still need to refresh).
Common Problems and Fixes When Updating
Here are typical issues users hit and how to solve them:
- New rows not appearing after refresh: Your source range is fixed. Use Change Data Source or convert to a Table.
- New columns not showing in the field list: Refresh the pivot table first; if the column is truly new, you may need to change the source range or refresh the Table.
- Pivot table shows “(blank)” for new entries: This happens when the source range includes empty cells. Clean your data or adjust the range.
- Refresh doesn’t pick up renamed headers: If you rename a column header, refresh the pivot; the field name in the field list updates. If it doesn’t, change the source range to force a rebuild.
- Pivot table is slow to refresh: Large data sets can be slow. Consider using Power Pivot or Power Query for millions of rows, or set manual refresh mode.
- Refreshing changes formatting: By default, refresh preserves most formatting. If you lose number formats, check PivotTable Options > Layout & Format > ensure “Preserve cell formatting on refresh” is checked.
Refreshing vs. Rebuilding: What’s the Difference?
Refreshing keeps your layout and formatting, just updates the numbers. Rebuilding (creating a new pivot table from scratch) gives you a clean slate but loses all customizations like calculated fields, custom sort orders, and styles. In most cases, you should refresh rather than rebuild. However, if the source data structure changed dramatically (e.g., columns reordered, headers renamed), a rebuild might be faster than fixing the existing pivot.
Another related concept is the pivot cache. If you create multiple pivot tables from the same data, they share a cache. Refreshing one refreshes all of them (unless you uncheck “Share the cache” in the Create PivotTable dialog). This is efficient but can be confusing if you expect one pivot to update independently.
Updating a Pivot Table in Google Sheets
If you’re using Google Sheets, the process is similar but with different menu names:
- Refresh: Right-click the pivot table > Refresh, or go to Data > Pivot table > Refresh.
- Change source range: Click the pivot table, then in the Pivot table editor (right side), click the Data range field and edit it. If your source is a named range, you can update the range’s definition.
- Add fields: In the Pivot table editor, click Add next to Rows, Columns, Values, or Filters.
Google Sheets automatically refreshes pivot tables when the underlying data changes, but you can still force a refresh if needed. Unlike Excel, there’s no separate pivot cache—each pivot table is independent, but refreshing is usually instant.
Frequently Asked Questions
Why doesn’t my pivot table update when I change the source data?
Because pivot tables store a snapshot in memory. You must refresh (right-click > Refresh or Alt+F5). If you added new rows, you also need to expand the source range or use a Table.
How do I make a pivot table automatically include new rows?
Convert your source data to an Excel Table (select data, press Ctrl+T). Then any new rows added to the table are automatically included when you refresh the pivot table.
Can I refresh a pivot table without losing my formatting?
Yes. By default, Excel preserves formatting on refresh. To be safe, check PivotTable Options > Layout & Format > Preserve cell formatting on refresh. If you’ve applied custom number formats, they should persist.
What is the shortcut to refresh a pivot table?
On Windows, press Alt+F5. On Mac, press ⌘+R. To refresh all pivot tables, use Ctrl+Alt+F5 (Windows) or ⌘+⌥+F5 (Mac).
Why is my pivot table showing old data even after refresh?
If you’ve refreshed and still see old values, check if the source range includes the new rows/columns. Also, ensure you’re refreshing the correct pivot table (if multiple share a cache, refreshing one updates all). If the source is an external database, the connection may need to be refreshed separately.
How do I update a pivot table when I add a new column to the source?
First, refresh the pivot table to update the field list. If the new column doesn’t appear, change the source range to include it, or if using a Table, the column is automatically included after refresh. Then drag the new field into the desired area.
Related
- DS18DSAL 18V Compact Pro Driver Drill Hitachi Review
- Select All Windows Explorer: Steps & Tips
- City 8 Codes for Traffic Signals Explained
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Pivot Table: Add a Calculated Column or FieldYes—but the right method depends on what you mean by a calculated column. In Excel for Microsoft 365…
- Excel Pivot Table Field Name Not Valid? Fix ItThe Excel “PivotTable field name is not valid” error usually means the selected source range has a missing…
- Gantt Chart Excel 2013: Formula, Setup, and FormattingIn Excel 2013, make a Gantt chart by putting task start and finish dates beside a row of…
- Why Are Sparklines Not Showing in Excel?Sparklines usually fail to appear because the source range has no usable numeric values, the sparkline is in…
- How to Make a Trendline Solid in Excel and Fix DashesTo make a trendline solid in Excel for Microsoft 365 on Windows, select the trendline, press Ctrl+1, open…
- Excel Logarithmic Scale Histogram: What WorksYes—but Excel’s built-in Histogram chart cannot put its horizontal category axis on a logarithmic scale. The practical workaround…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.