How to Fix Excel PivotTable Average Errors Caused by #VALUE!
Question details
The user needs to resolve calculation errors in an Excel PivotTable caused by invalid data or #VALUE! errors in the source range, preventing average wait times from being calculated.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to calculate average values (such as wait times) in an Excel PivotTable using data that contains errors.
- Observed behavior
- The PivotTable fails to compute the average and displays an error because the source data column contains #VALUE! errors or text. Using the PivotTable option to ignore errors only alters the display, without fixing the underlying mathematical calculation.
Before making structural changes to your dataset or replacing error values, create a backup copy of your original worksheet to prevent accidental data loss.
Clean Source Data Using the IFERROR Function
Create a helper column to replace #VALUE! errors with blanks or zeros so the PivotTable can correctly calculate averages.
PivotTables cannot calculate mathematical averages if the source data contains text or error values like #VALUE!. You must clean the source data directly before generating or refreshing the PivotTable.
Insert a new column next to your source data column that currently contains the calculation errors.
Type the formula =IFERROR(A2+B2, "") into the first cell of the helper column, replacing 'A2+B2' with your actual calculation or cell reference.
Drag the formula down to fill the entire column. Then, select your PivotTable, navigate to 'PivotTable Analyze' > 'Change Data Source', and expand the range to include your new helper column.
Right-click anywhere inside the PivotTable and select 'Refresh'. Drag your newly created helper column into the 'Values' box and set it to summarize by 'Average'.

Remove or Replace Errors Using Power Query
Utilize Power Query to automatically clean invalid data before loading it into your PivotTable, maintaining the integrity of your original dataset.
Calculate PivotTable Averages Error-Free with WPS Spreadsheet
WPS Spreadsheet provides powerful data cleaning formulas and robust PivotTable features to help you calculate averages, sums, and counts without calculation errors.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office, open your spreadsheet file, and locate the column containing #VALUE! errors.
- 2. Clean data with IFERROR: Add a new helper column and use the =IFERROR(value, "") formula to replace calculation errors with blanks.
- 3. Insert a new PivotTable: Highlight your updated data range including the helper column, go to the 'Insert' tab, and click 'PivotTable'.
- 4. Calculate the average: Drag the cleaned column to the 'Values' area, click the field settings, and change the summary calculation from Sum to Average.

Frequently Asked Questions
Why does checking 'For error values show' in PivotTable options not fix my average calculation?
The 'For error values show' option only changes how the error is visually displayed on the PivotTable (such as replacing it with a dash or blank space). It does not remove the underlying error from the dataset, which is why the mathematical calculation for the average still fails.
How can I quickly locate all #VALUE! errors in a large Excel dataset?
You can easily find errors by pressing Ctrl+G to open the Go To dialog. Click 'Special', select 'Formulas', and uncheck all boxes except for 'Errors'. Click OK, and Excel will highlight every cell in your worksheet containing an error.
Does replacing #VALUE! errors with zeros affect my final average?
Yes. If you replace an error with a zero (0), the PivotTable will count that cell as a valid number and include it in the denominator when calculating the average, which will bring your overall average down. Replacing errors with a blank ("") ensures the PivotTable simply ignores that row in its average calculation.




