How to Fix PivotTable Treating Numbers as Text and Not Summing
Question details
The user needs to make a PivotTable correctly identify and sum a numeric column that is currently being evaluated as text.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating or updating a PivotTable where the source data contains numbers that have been imported or formatted incorrectly, causing the PivotTable to count instead of sum.
- Observed behavior
- The PivotTable classifies the numeric column as text and defaults to counting the values instead of summing them, even though a normal SUM formula calculates successfully on the exact same range.
Before proceeding, check your source data column for empty cells, error values, or mixed data types (like numbers combined with letters), as these will immediately force the PivotTable to treat the entire column as text.
Convert Text to Numbers Using Text to Columns
This is the most effective method to quickly strip hidden characters like leading apostrophes and force the column into a true numeric format.
When numbers are imported from databases or other systems, they often contain hidden non-breaking spaces or leading apostrophes. The Text to Columns wizard clears these hidden formats in a few clicks.
Navigate to your source data sheet and highlight the entire column containing the problematic numbers.
Go to the 'Data' tab on the top ribbon and click on the 'Text to Columns' icon.
Choose 'Delimited' in the first step and click 'Next' twice to reach the final step of the wizard.
Select 'General' as the Column data format and click 'Finish'. The text values will instantly convert to numbers.
Right-click anywhere inside your PivotTable and select 'Refresh'. If the field still shows 'Count', remove it from the Values area and drag it back in to apply the 'Sum' aggregation.

Convert Text to Numbers Using Paste Special
Multiplying the text-formatted numbers by 1 forces the spreadsheet application to evaluate and convert them into actual numerical values.
Easily Manage and Clean Data with WPS Spreadsheet
WPS Office provides advanced data cleaning tools and robust PivotTable features to help you process large datasets and avoid formatting errors.
- 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your PivotTable and source data.
- 2. Use Smart Tags: Highlight the column with text-formatted numbers and click the yellow error checking smart tag that appears next to the cells.
- 3. Convert to Number: Select 'Convert to Number' from the dropdown menu to instantly fix the data type.
- 4. Refresh PivotTable: Right-click your PivotTable and select 'Refresh' to accurately sum your data without rebuilding the table.

Frequently Asked Questions
Why does my PivotTable default to 'Count' instead of 'Sum'?
PivotTables automatically default to 'Count' when the source column contains blank cells, text strings, errors, or numbers stored as text (such as those with leading apostrophes). Ensuring every cell in the column contains a true number will change the default behavior to 'Sum'.
I converted my data to numbers, but the PivotTable still counts. What should I do?
PivotTables cache source data to improve performance. Even after fixing the source, the cache might retain the old 'Text' classification. To fix this, untick the field from the PivotTable Fields pane, right-click the PivotTable to 'Refresh', and then check the field again to add it back to the Values area.
Why does a normal SUM formula work when the PivotTable fails?
Standard SUM formulas in the spreadsheet grid are designed to either ignore text strings entirely or coerce certain text-numbers into numeric values for the calculation. PivotTables, however, are strictly bound to data types; if they detect non-numeric data, they will classify the entire field as categorical (text) and count it instead.




