How to Fix Text Displayed Instead of Zero in an Excel PivotTable
Question details
The user needs to correct a PivotTable that is displaying text values in a field where a numeric zero should appear.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing or summarizing data where numeric zeros in the source are incorrectly rendering as text.
- Observed behavior
- The PivotTable displays text in a value column instead of the numeric zero present in the source table.
Before modifying your PivotTable, ensure that your source data range doesn't contain hidden blank cells or text disguised as numbers.
Adjust Number Format and Clean Source Data
Use this method to directly fix the formatting of the PivotTable value field and remove hidden text formatting in the source data.
PivotTables are highly sensitive to the data types in the source range. If even a single cell in a numeric column is formatted as text or contains hidden characters, the PivotTable may default to displaying text or counting the values instead of summing them.
Right-click the cell displaying the text in your PivotTable and select 'Value Field Settings' from the context menu.
Click the 'Number Format' button at the bottom left of the dialog. Choose 'Number' from the category list and set decimal places to zero. Click OK.
Navigate to your original source data. Check the affected column for numbers stored as text (often indicated by a green triangle in the cell corner), hidden characters, or mixed data types.
After correcting the source data format, right-click anywhere in the PivotTable and select 'Refresh' to update the displayed values.

Create and Manage PivotTables Easily in WPS Spreadsheet
WPS Spreadsheet provides a highly compatible and intuitive environment for creating, managing, and formatting PivotTables, making data analysis seamless and error-free.
- 1. Open your Workbook: Launch WPS Spreadsheet and open your Excel workbook containing the raw data.
- 2. Insert a PivotTable: Select your data range, go to the 'Insert' tab, and click 'PivotTable'.
- 3. Format Values: Drag your fields into the Values area, click the field, and use 'Value Field Settings' to apply the correct Number format.

Frequently Asked Questions
Why are numbers in my Excel source data stored as text?
Numbers can be stored as text if they were imported from an external database or CSV file, or if the cell was formatted as Text before the number was typed.
How can I quickly convert numbers stored as text back to numbers?
You can select the affected cells, click the yellow warning icon with an exclamation mark that appears next to the selection, and choose 'Convert to Number'.
Will refreshing the PivotTable overwrite my custom number formatting?
No, if you apply the number format through the 'Value Field Settings' dialog, the formatting will be retained even after refreshing or rearranging the PivotTable.
What if empty cells in my PivotTable are showing blanks instead of zeros?
Right-click the PivotTable, select 'PivotTable Options', look for the 'For empty cells show' checkbox under the Layout & Format tab, check it, and type '0' in the box.




