Pivot Table Issues

Fix Excel PivotTable Values Showing Count Instead of Sum or Average

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

The user needs a PivotTable to summarize source values by Sum or Average rather than Count.

Fix Excel PivotTable Values Showing Count Instead of Sum or Average
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!.
Before you start

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.

Solution 1Recommended

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.

1
Check the source values

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.

2
Convert text numbers

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.

3
Clean invalid entries

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.

4
Check the source range and refresh

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.

5
Choose Sum or Average

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.

Convert the source values to numbers and refresh the PivotTable
Check remaining errors: Average can return #DIV/0! when there are no numeric values to average in a group. Blank cells are ignored, but source errors and text values should be inspected and corrected.
Work with PivotTables in WPS

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. 1. Open the workbook: Open WPS Spreadsheets and select File > Open to load the workbook containing your source data and PivotTable.
  2. 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. 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. 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.
Check numeric source values before summarizing them in a PivotTableChoose Sum or Average for a PivotTable value fieldOpen and save Microsoft Excel XLSX and XLS filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.