Yes, you can refresh pivot data, and the quickest way is to right-click anywhere inside the pivot table and choose Refresh. This updates the pivot with any changes made to the source data since the last refresh. If you’ve added new rows or columns to the source range, you’ll also need to update the source range (see below).
Why a Pivot Table Doesn’t Update Automatically
A pivot table is a snapshot of your data at the moment you created or last refreshed it. Unlike a formula that recalculates when its inputs change, a pivot table stores a cached copy of the source data. When you edit a value in the source, the pivot still shows the old number until you tell it to refresh. This design is intentional—it keeps large pivots responsive and lets you work with a static view of historical data.
Excel does offer a setting to refresh the pivot when the workbook opens, but it does not refresh live while you type. For real-time updates, you’d need to use Power Pivot with a direct connection or write a VBA macro that refreshes on a timer or when a cell changes.
How to Refresh a Pivot Table Manually
The manual refresh is straightforward and works in all modern versions of Excel (2016, 2019, 2021, and Microsoft 365).
- Click anywhere inside the pivot table to activate the PivotTable Tools tabs.
- Go to the PivotTable Analyze tab (called Analyze in some versions).
- Click the Refresh button. Alternatively, right-click the pivot and choose Refresh.
- To refresh all pivot tables in the workbook at once, click the small arrow under the Refresh button and choose Refresh All (or press Ctrl+Alt+F5).
Keyboard shortcut: Alt+F5 refreshes the active pivot; Ctrl+Alt+F5 refreshes all. On a Mac, the shortcuts are ⌘+R for refresh and ⌘+⌥+R for refresh all (in Excel for Mac 2016 and later).
When You Add New Rows or Columns: Update the Source Range
Refreshing only updates existing data—it does not pick up new rows or columns that you added after creating the pivot. If you add 50 new sales records below your original range, the pivot will ignore them until you expand the source range.
To check or change the source range:
- Click the pivot table.
- Go to PivotTable Analyze > Change Data Source.
- In the dialog, adjust the range to include the new rows/columns, then click OK.
- Now refresh as described above.
A better long-term solution is to convert your source data into an Excel Table (select the data, press Ctrl+T). Then the pivot’s source is the table name (e.g., Table1), and any new rows added to the table are automatically included when you refresh—no need to manually change the range.
Refreshing Pivot Data from External Sources
If your pivot is based on an external data source (like SQL Server, Access, or a text file), refreshing pulls the latest data from that source. The process is the same: right-click > Refresh, or use Refresh All. However, you may need to enter credentials if the connection requires them. For large external datasets, refresh can take a while; Excel shows a progress bar in the status bar.
If your pivot uses Power Pivot (the Data Model), you refresh the underlying tables via Data > Queries & Connections or by using the Refresh All button. Power Pivot pivots do not support the traditional right-click refresh; you must refresh the data model.
Automatic Refresh on File Open
To make a pivot refresh every time you open the workbook, set the workbook’s refresh option:
- Right-click the pivot table, choose PivotTable Options.
- Go to the Data tab.
- Check the box for Refresh data when opening the file.
This is useful for reports that are distributed to others—the pivot will show the latest data from the source (if the source is accessible) without manual intervention. Note: if the source is a closed workbook or an external database, the user will need the necessary permissions.
Common Problems and Fixes
- Refresh is greyed out: This happens if the pivot is based on a range that no longer exists (e.g., you deleted the sheet). Recreate the pivot or fix the source reference.
- New rows not appearing after refresh: As noted, update the source range or use a Table.
- Refresh All doesn’t refresh a specific pivot: Some pivots are based on Power Pivot or a connection that requires a different refresh method. Check the connection settings.
- Pivot shows old formatting after refresh: Refresh updates data, not layout. If you added new items, they may not inherit the number format. Use a PivotTable Style or set the number format for the entire field.
- Refresh takes too long: If your source has hundreds of thousands of rows, consider using a data model or limiting the source range to only the necessary columns.
Refreshing vs. Recreating a Pivot Table
Refreshing is almost always faster and safer than deleting and recreating the pivot, because it preserves your layout, filters, slicers, and formatting. Recreating forces you to rebuild all that. However, if you’ve made major changes to the source structure (e.g., merged cells, added a column that changes the field list), recreating might be necessary. A middle ground is to clear the pivot and re-add fields, but that loses your layout too.
Frequently Asked Questions
Q: Why doesn’t my pivot update when I change a value in the source?
Because the pivot stores a cached copy. You need to refresh it manually (or set it to refresh on open). There is no live link by default.
Q: How do I refresh all pivot tables at once?
Use Ctrl+Alt+F5 (Windows) or ⌘+⌥+R (Mac). Alternatively, go to the Data tab and click Refresh All.
Q: Does refreshing a pivot affect my slicers and filters?
No. Refreshing only updates the data values. Slicers and filters remain as they are, but they may show new items if you added data that matches their criteria.
Q: Can I make a pivot auto-refresh every minute?
Yes, but only with VBA. You can write a macro that refreshes the pivot on a timer. Be aware that this can slow down your workbook. Here’s a simple example:
Sub AutoRefresh()
' Save a copy of your workbook before running any macro.
' This refreshes all pivots every 60 seconds.
Application.OnTime Now + TimeValue("00:01:00"), "AutoRefresh"
ActiveWorkbook.RefreshAll
End Sub
Run AutoRefresh once to start the loop. To stop it, you’d need to cancel the OnTime schedule.
Q: What’s the difference between Refresh and Refresh All?
Refresh updates only the selected pivot table. Refresh All updates every pivot table, query, and data connection in the workbook.
Q: My pivot is based on a Table, but new rows still don’t show up.
If the pivot is based on a Table, new rows should appear after a refresh. If they don’t, check that the table actually includes the new rows (the table range expands automatically when you type below it). Also, ensure the pivot’s source is set to the table name, not a static range.
Related
- BigQuery SELECT from Multiple Tables: 4 Ways
- Traffic Light PLC Program: How It Works
- DB10DL 10.8V Lithium Ion Micro Driver Drill Guide
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Power Pivot Calculated Field: Measures vs ColumnsIn Power Pivot, an aggregated calculation for a PivotTable is usually a DAX measure, often informally called a…
- Pivot Chart Line Graphs in Excel: How They WorkYes. In Excel, a PivotChart line graph displays values from a PivotTable as a line chart, making it…
- How to Change a Column Name in an Excel ChartTo change a column name shown in an Excel chart, rename the chart’s data series: select the chart,…
- Box Plot in Excel: Show Outliers and Read the ChartYes. In Excel for Microsoft 365 on Windows, select your data, choose Insert > Insert Statistic Chart >…
- Excel Pivot Table Sort by Absolute ValueTo sort a pivot table by absolute value in Excel, you cannot use the built-in sort options directly—they…
- Excel Pivot Table: Filter Values Greater Than a NumberTo show PivotTable items whose summarized value exceeds a threshold, open the drop-down for the row or column…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.