If your Excel PivotTable is showing wrong totals, blank cells, or values that don’t match your source data, the fix is usually one of three things: refresh the PivotTable, check the number format, or verify that the source data range includes all your rows. This article walks through each cause and the exact steps to resolve them, so you can get accurate calculations back quickly.
Why PivotTables Show Incorrect Values
PivotTables are powerful but they don’t automatically update when your source data changes. They also rely on how Excel interprets your data—text vs. numbers, blank cells, and column headers all matter. Common reasons for incorrect calculations include:
- Stale data: The PivotTable hasn’t been refreshed after you added or changed rows.
- New rows not included: The source range was set before you added more data, so new rows are ignored.
- Text-formatted numbers: Cells that look like numbers but are stored as text won’t sum correctly.
- Blank cells in numeric columns: These can be treated as zero or cause the field to be counted instead of summed.
- Wrong aggregation type: The field is set to Count instead of Sum, or vice versa.
- Number formatting: The PivotTable shows rounded or truncated values due to cell formatting.
How to Refresh a PivotTable
Refreshing is the first thing to try. It recalculates the PivotTable from the current source data.
- Click anywhere inside the PivotTable.
- Go to the PivotTable Analyze tab (or Options in older Excel).
- Click Refresh. To refresh all PivotTables in the workbook, click the dropdown under Refresh and choose Refresh All.
You can also right-click inside the PivotTable and select Refresh. If you want Excel to refresh automatically every time you open the file, go to PivotTable Options > Data tab and check Refresh data when opening the file.
Check and Update the Source Data Range
If you added rows or columns to your source data after creating the PivotTable, the range might be outdated. To check:
- Click the PivotTable.
- Go to PivotTable Analyze > Change Data Source.
- In the dialog, note the range shown. If it doesn’t include your new rows, update it or select the full range manually.
A better long-term solution is to convert your source data into an Excel Table (Ctrl+T). Tables automatically expand when you add rows, and PivotTables based on tables will pick up new data on refresh without you having to update the range.
Ensure Numbers Are Stored as Numbers
Sometimes cells look like numbers but are actually text—often because they were imported from another system or had an apostrophe before the number. Text-formatted numbers won’t sum correctly in a PivotTable.
To check, select the column in your source data and look at the Number Format dropdown in the Home tab. If it says Text, the values are text. To fix:
- Select the column.
- Go to Data > Text to Columns.
- Click Finish (the default delimited option works fine).
This forces Excel to convert text to numbers. Alternatively, you can multiply the column by 1 using a helper column: =A2*1 and then copy-paste as values.
Verify the Field Settings (Sum vs. Count)
If your PivotTable is showing counts instead of sums, the field is set to Count. This often happens when the column contains blank cells or text—Excel defaults to Count for non-numeric data.
To change it:
- Right-click a value cell in the PivotTable.
- Select Value Field Settings.
- Choose Sum (or another function like Average) and click OK.
If you need Sum but blanks are causing Count, either fill blanks with 0 or remove the blank rows from your source data.
Check Number Formatting and Display
Sometimes the calculation is correct, but the display looks wrong. For example, if you have large numbers, the column width might be too narrow, showing ####. Or the cell format might be set to show zero decimal places, hiding cents.
To fix formatting:
- Right-click a value cell in the PivotTable.
- Choose Number Format.
- Select the appropriate category (e.g., Number, Currency) and set decimal places.
Also, ensure that Precision as displayed is not enabled in Excel options. That setting forces calculations to use the displayed (rounded) values instead of the underlying full precision. Go to File > Options > Advanced and under When calculating this workbook, uncheck Set precision as displayed.
Common Misconception: PivotTables Don’t Auto-Calculate Formulas
A frequent misunderstanding is that PivotTables work like regular formulas—they don’t. They are a snapshot of the data at the time of refresh. If you change a value in the source data, the PivotTable will not update until you refresh. This is by design for performance, but it trips up many users.
Another misconception: adding a calculated field to a PivotTable always uses the correct subtotals. In reality, calculated fields operate on the sum of the underlying fields, which can lead to unexpected results if you use ratios or percentages. For example, a calculated field =Profit/Revenue will divide the total profit by the total revenue, not the average of per-row ratios. If you need per-row calculations, add a helper column in the source data instead.
Frequently Asked Questions
Why does my PivotTable show #REF! or #DIV/0! errors?
These errors usually appear when a calculated field references a field that no longer exists or when a division by zero occurs. Check the calculated field formula and ensure all referenced fields are still in the PivotTable. For division errors, use =IFERROR(your_formula,0) in a calculated field to return 0 instead of an error.
How do I make my PivotTable update automatically when I add new rows?
Convert your source data to an Excel Table (Ctrl+T) and then create the PivotTable from that table. When you add new rows to the table, the PivotTable will include them after you refresh. You can also set the PivotTable to refresh on file open via PivotTable Options.
Why is my PivotTable counting instead of summing?
Excel defaults to Count when the field contains any text or blank cells. Check the field settings and change to Sum. Also, ensure the column contains only numeric values—convert any text-formatted numbers using Text to Columns.
Can I use a PivotTable to calculate percentages correctly?
Yes, but be careful. You can use the Show Values As feature (right-click a value > Show Values As) to display percentages of row, column, or grand total. This is usually more accurate than creating a calculated field with a ratio, because it uses the correct denominators.
Why does my PivotTable show a blank row or column?
This often happens when your source data has blank cells in the row or column labels. Fill those blanks with a placeholder like “(blank)” or remove the rows. You can also filter out blanks by using the row/column label filter and unchecking “(blank)”.
How do I force a PivotTable to recalculate after changing a calculated field?
Calculated fields are recalculated when you refresh the PivotTable. After editing the formula in Fields, Items & Sets, click Refresh to apply the change. If you have multiple PivotTables, use Refresh All.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Unfortunately App Has Stopped: Step-by-Step
- Restart a Frozen Samsung Galaxy A12
- HomePod Stereo Pair with AirPlay 2 from iPhone
- Fix 0x8e5e0247 Error on Windows
- Pixel & Pixel XL No Sound: Solved?
- How to Edit Playlists on iPhone