Fix Excel PivotTable Values Showing Count Instead of Sum or Average
Question details
The user needs a PivotTable to summarize source values by Sum or Average rather than Count.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A PivotTable is used to summarize a column that should contain numeric values.
- Observed behavior
- The PivotTable shows Count instead of the expected Sum, or Average returns zero or #DIV/0!.
Locate the source column used by the PivotTable and check a few expected numbers with =ISNUMBER(A2). Change A2 to a cell in your source data; FALSE means that cell is not stored as a number.
Convert the source values to numbers and refresh the PivotTable
Use this when expected numbers are stored as text or the source column contains errors or nonnumeric characters.
In an empty source-data column, enter =ISNUMBER(A2) and fill it down, replacing A2 with the first value cell. Inspect cells that return FALSE, including blanks and text.
Select the affected source column and choose Data > Text to Columns, then finish the wizard to convert recognizable text numbers. Alternatively, use =VALUE(A2) in a helper column and fill it down. Changing the cell format alone does not convert text to numbers.
Inspect values that still fail conversion. In the source cells, remove leading apostrophes, extra spaces, or nonnumeric characters, and correct error values. Make sure currency symbols and separators match the expected number format.
Click the PivotTable, choose PivotTable Analyze > Change Data Source, and confirm that the range includes the corrected column or helper column. Then right-click the PivotTable and select Refresh.
In the PivotTable Fields pane, drag the numeric field into Values. Open its menu, select Value Field Settings, choose Sum or Average, and click OK.

Summarize numeric values in WPS Spreadsheets
Use WPS Spreadsheets to check and convert source values, refresh a PivotTable, and select Sum or Average for a numeric field.
- 1. Open the workbook: Open WPS Spreadsheets and select File > Open to load the workbook containing your source data and PivotTable.
- 2. Check and convert values: Enter =ISNUMBER(A2) in an empty column to test a source cell. For text numbers, enter =VALUE(A2) in a helper column and fill it down; correct any values that return errors.
- 3. Refresh the PivotTable: Click the PivotTable and use its data source option to include the numeric column or helper column, then right-click the PivotTable and select Refresh.
- 4. Set the calculation: Add the numeric field to the Values area, open its field settings, and select Sum or Average. Menu labels may vary by WPS version.

Frequently Asked Questions
Why does my PivotTable show Count instead of Sum?
Excel may treat the source field as nonnumeric if it contains text values or blanks. Test a source cell with =ISNUMBER(A2), convert text numbers, and refresh the PivotTable.
How do I change Count to Sum in an Excel PivotTable?
Open the value field's menu in the PivotTable Fields pane, choose Value Field Settings, select Sum, and click OK. Make sure the source values are numeric for a meaningful total.
Why does Average show #DIV/0! in my PivotTable?
A group may have no numeric values to average. Check its source cells for text, blanks, and errors, correct the data, and right-click the PivotTable to select Refresh.
Will formatting a text cell as a number fix the PivotTable?
No. Formatting changes how a value is displayed, not its underlying type. Use Data > Text to Columns or a formula such as =VALUE(A2) to convert recognizable text numbers.




