Yes, you can refresh data in a pivot table—and you must do it manually (or via automation) after changing the source data, because pivot tables do not update automatically in real time. Refreshing rebuilds the summary using the latest values in the underlying data range or external source, ensuring your analysis reflects current information.
Understanding the Pivot Table Refresh Cycle
A pivot table is a dynamic summary tool built on top of a static data snapshot. When you first create one, Excel (or similar software) reads your data and stores that version internally. From that point forward, any edits to the source rows—such as adding new entries, changing numbers, or deleting records—remain invisible to the pivot table until you explicitly refresh it. This design prevents performance slowdowns from constant recalculations, especially with large datasets or complex calculations, but it places responsibility on the user to trigger updates.
The refresh process does not alter your source data; it only reprocesses it to regenerate the pivot table’s rows, columns, values, and filters. Crucially, if you’ve added new rows or columns outside the original data range used to build the pivot table, those additions won’t appear unless you either extend the source range manually or convert your data into an Excel Table (which automatically expands). This is a common source of confusion: users think their pivot table is outdated when, in fact, the source range hasn’t grown with the data.
How to Refresh a Pivot Table Manually
Manual refresh is the default and most common method. The exact menu paths vary slightly by version and platform (e.g., Excel for Microsoft 365 on Windows, Excel for Mac, or Excel Online), but the logic is consistent:
- Click anywhere inside the pivot table to activate PivotTable tools.
- Go to the PivotTable Analyze tab (Windows/macOS) or PivotTable tab (older versions).
- Click the Refresh button (a circular arrow icon), or press Alt + F5 on Windows, Fn + Shift + R on Mac.
Alternatively, right-click any cell in the pivot table and choose Refresh from the context menu. If you want to refresh all pivot tables in the workbook at once, use Data > Refresh All (in the Data tab) or press Ctrl + Alt + F5 (Windows).
Setting Automatic Refresh (With Caveats)
Excel offers limited automatic refresh options, but they require external connections or VBA automation and are not foolproof:
- On file open: You can configure a pivot table to refresh whenever the workbook is opened. Right-click the pivot table > PivotTable Options > Data tab > check Refresh data when opening the file. This works only if the source is an external database, SharePoint list, or Power Query query—not a static range.
- Power Query integration: If your pivot table is built on a Power Query query, you can schedule refresh via Excel’s Data Connection settings or use Power Automate for cloud-based refresh (e.g., in Excel Online), but this is only available in Microsoft 365 with certain license tiers.
- VBA macros: Advanced users can write event-driven code like
PivotTable.RefreshTablein theWorksheet_Changeevent to auto-refresh when source cells change. However, this requires enabling macros and introduces security considerations.
Important: Excel does not natively support real-time, event-based refresh for basic ranges without VBA. Many users assume pivot tables auto-update like formulas, but this is a misconception—refresh must be triggered.
Common Refresh Problems and Fixes
Several issues can prevent successful refresh. Here’s how to diagnose and resolve them:
- “The PivotTable report is not connected to the data source”: This usually means the source range was deleted or renamed. Go to PivotTable Analyze > Change Data Source, then reselect the correct range or table.
- Hidden or filtered rows still excluded: Even after refreshing, new rows may not appear if they fall outside the original source range. Convert your data to an Excel Table (Ctrl+T) before creating the pivot table, or manually extend the source range to include future rows.
- Refresh is grayed out: This happens if you’ve selected a cell outside the pivot table or if the sheet is protected. Unprotect the sheet (Review > Unprotect Sheet) first, then retry.
- Slow or hanging refresh: Large datasets with many calculated fields or external connections (e.g., SQL Server) may take time. Reduce complexity by removing unnecessary fields, filtering early, or splitting the pivot table across multiple sheets.
Tip: Always verify the refresh succeeded by checking a known value (e.g., a sum that changed in the source) rather than assuming it worked silently.
Refresh vs. Update: Clarifying Terminology
Users often confuse “refresh” with “update.” Refreshing a pivot table means reloading its summary from the existing source—it does not change the source data or modify the pivot’s layout (e.g., you can’t add a new field during refresh). To update the pivot’s structure (like adding a new column field or changing a filter), you must use PivotTable Fields pane or Design options—this is separate from refreshing.
For example: If you add a new product category in the source data, refreshing alone won’t show it in the row labels. You must drag the new field into the Rows area (or ensure the field is already there and refresh). Pivot tables only display fields that were present when the layout was last edited.
Alternatives and Workarounds
If manual refresh feels cumbersome, consider these structured alternatives:
- Excel Tables + Pivot Tables: Converting your raw data to a Table (Insert > Table) automatically expands the pivot’s source range when new rows are added. You’ll still need to refresh manually, but fewer rows will be missed.
- Power Pivot with scheduled refresh: In Excel with Power Pivot add-in (or Power BI), you can connect to live databases and set up automatic refresh schedules (e.g., hourly). This is ideal for analysts working with SQL or cloud data but requires additional setup.
- Dynamic named ranges: Use formulas like
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))to define a source range that grows/shrinks with data. Then build the pivot on that name. Still requires manual refresh, but the range adapts.
None of these eliminate the need for refresh entirely—they only reduce how often you forget or how much manual range management is needed.
Safety and Data Integrity Considerations
Refreshing a pivot table is a safe, non-destructive operation. It never overwrites your source data, deletes rows, or modifies formulas. However, two risks exist:
- External data failures: If your pivot connects to a database that’s temporarily offline, refresh will fail, and Excel may show error values (like #N/A or #DIV/0!). Check the connection status (Data > Queries & Connections) and verify the source is accessible before assuming the pivot is broken.
- Unintended aggregations: If source data contains blank cells or text where numbers are expected, refresh may produce unexpected totals (e.g., text values like “N/A” in a sum field get ignored, reducing the count). Validate your source data quality before refreshing.
Best practice: Keep a backup copy of your workbook before large data changes, especially when using macros or external connections. While refresh itself is safe, underlying data issues compound during updates.
Frequently Asked Questions
Can I refresh a pivot table without opening the Excel file?
Not natively. If the workbook is closed, Excel cannot refresh its pivot tables—even with Refresh All selected. However, if the data source is an external database and the pivot uses an OLE DB or ODBC connection, Excel Online (via OneDrive/SharePoint) can refresh the pivot automatically on a schedule, provided you have a Microsoft 365 Business or Enterprise license. This requires the file to be saved in the cloud and the connection to support it.
Why does refreshing sometimes delete my filters?
It doesn’t. Filters (like Slicers or Report Filters) persist across refreshes. What often happens is that users apply a filter, then refresh, and new data no longer meets the filter criteria—so items disappear. For example, if you filter for “Sales > $10,000” and refresh, rows with values below $10,000 now included in the source won’t appear. Check your filter values and source data to confirm.
Does refreshing affect pivot table calculations or formulas?
No. Calculated fields, items, and custom formulas (e.g., =SUMIF(...) added as fields) are recalculated using the refreshed data but remain structurally unchanged. Only the underlying values they depend on update. If a calculated field returns an error after refresh, the issue lies in the source data (e.g., division by zero), not the refresh process.
Can I refresh only one pivot table instead of all?
Yes. Right-click any cell in that specific pivot table and choose Refresh. Alternatively, use PivotTable Analyze > Refresh. To refresh only certain pivot tables, select each one individually and refresh. There’s no built-in way to group them, but VBA can automate selective refresh if needed.
Why does my pivot table show old data after I deleted rows in the source?
Pivot tables retain empty rows/columns from the original data snapshot. When you delete rows from the source, those categories may still appear as blank rows in the pivot until you clear them. After refreshing, right-click the pivot > PivotTable Options > Layout & Format > check Autofit column widths on update and Show empty cells. Then manually delete obsolete items using PivotTable Analyze > Active Field > Clear or right-click > Delete.
Is there a keyboard shortcut to refresh all pivot tables at once?
Yes. Press Alt + F5 to refresh the active pivot table. To refresh all pivot tables in the workbook, use Ctrl + Alt + F5 (Windows) or Fn + Control + Option + F5 (Mac). Ensure no other apps are intercepting these shortcuts.