Pivot Table Issues

Fix the Excel PivotTable #N/A Double Type Error

Maira MehtabMaira Mehtab Nov 20, 2026 869 views

Question details

Resolve a PivotTable error caused by nonnumeric values in a field expected to contain numbers.

Fix the Excel PivotTable #N/A Double Type Error
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.
Before you start

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.

Solution 1Recommended

Clean the numeric field in the PivotTable source

Use this solution when a numeric source column contains text, errors, or numbers stored as text.

1
Find the source data

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.

2
Inspect the numeric column

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.

3
Correct incompatible values

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.

4
Refresh the PivotTable

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.

Error values and text are different: An actual #N/A error may come from a formula, while the text '#N/A' is a literal entry. Correct the underlying formula when possible rather than treating both cases as ordinary text.
Free Microsoft Office alternative

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.

Review and edit spreadsheet source data in a familiar interfaceOpen and save common Microsoft Excel formats, including XLSXUse a free, lightweight suite for everyday office workMove routine spreadsheet workflows with familiar menus and tools
microsoft office alternative - wps office

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.