Fix the Excel PivotTable #N/A Double Type Error
Question details
Resolve a PivotTable error caused by nonnumeric values in a field expected to contain numbers.

- Product
- Microsoft Excel PivotTable and Data Model
- Device & OS
- not provided
- Scenario
- A PivotTable is created or refreshed from a source that may contain text or errors in a numeric column, sometimes in a workbook created with an older Excel version.
- Observed behavior
- Excel reports a double type error when the PivotTable or Data Model encounters a value such as #N/A where it expects a number.
Identify the source table and the numeric column named in the error, if one is provided. Check whether the PivotTable uses the Data Model and whether #N/A is an Excel error or text typed into a cell.
Clean the numeric field in the PivotTable source
Use this solution when a numeric source column contains text, errors, or numbers stored as text.
Select the PivotTable and open PivotTable Analyze > Change Data Source to inspect its source. If it uses the Data Model, check the source table or query used to load the model.
Open the source table and use the column filter to look for #N/A, other errors, and text values in the field expected to be numeric.
Correct the source of each error or replace invalid entries with an appropriate number or blank. Convert numbers stored as text to numeric values; do not replace missing values with zero unless zero is meaningful.
Select Data > Refresh All to reload the source and update the PivotTable. If a Power Query loads the data, check its Changed Type step and resolve any conversion errors before refreshing.
Create a new PivotTable without the Data Model
Use this workaround if the error occurs in a Data Model PivotTable and you do not need its model-specific features.
Work with spreadsheet data in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday spreadsheet work. It does not repair Excel Data Model errors; check advanced PivotTable features after opening a workbook.

Frequently Asked Questions
Why does Excel report a double type error for #N/A?
A Data Model or query may expect a numeric value but encounter text or an error instead. Inspect the source column and any Power Query Changed Type step for incompatible values.
How do I create a PivotTable without the Data Model?
Select the source data, choose Insert > PivotTable, and leave Add this data to the Data Model unchecked before selecting OK.
Should I replace every #N/A with zero?
No. Correct the underlying formula or use a blank when appropriate. Use zero only when it accurately represents the data, because it can change PivotTable calculations.
What if the error continues in an older workbook?
Copy the source data into a new workbook in a current Excel version, then use Insert > PivotTable to build a new PivotTable. If it still fails, compare the source values and Excel versions in both files.




