Excel PivotTable Shows Count Instead of Sum: Causes and Fixes (Number Cleanup, Value Field Settings, Blank/Text Handling, and Power Query Data Types)

How to Fix an Excel PivotTable That Shows Count Instead of Sum

This guide explains why an Excel PivotTable shows Count instead of Sum and the fastest ways to fix it. Change the Value Field Settings, force values to numbers, and lock data types with Power Query to prevent the issue from recurring.

Quick Fix (3 Minutes)

  1. Right-click the field in the Values area → Value Field Settings → select Sum.
  2. Force the source data to numbers: finish Text to Columns or use Paste Special = Multiply by 1.
  3. Right-click the PivotTable → Refresh.

Why It Shows Count Instead of Sum

If even one text value, blank, or error is mixed into a number column, the PivotTable may default to Count. Clean up the column as numeric data.

Solutions by Situation

Change Value Field Settings

In Value Field Settings, change the calculation to Sum, then use Number Format to apply a format such as #,##0.

Fix Numbers Mixed with Text or Blanks

=VALUE(TRIM(SUBSTITUTE(A2,CHAR(160)," ")))

For European-style number formats, use =NUMBERVALUE(A2,",",".").

Handle Hyphens and N/A Values

Replace hyphens with 0, and use IFERROR to convert N/A values to 0 or exclude them.

Use Multiple Summary Calculations

Add the same field to the Values area twice to display the sum, average, and percentage at the same time.

Prevent Recurrence with Power Query or the Data Model

  1. When importing data, turn off automatic type detection and set number columns to Whole Number or Decimal Number.
  2. Replace hyphens and other characters with 0 or null.
  3. Add the data to the Data Model to lock the data types.

Practical Examples

// Remove NBSP, then convert to a number
=VALUE(TRIM(SUBSTITUTE(A2,CHAR(160)," ")))
// European format → Korean format
=NUMBERVALUE(A2, ",", ".")

Troubleshooting

SymptomCauseSolution
Only shows CountText or blanks are mixed inText to Columns / Multiply by 1 / VALUE
Reverts after changing to SumSource data type is textForce the type with Power Query
Sum is 0 or incorrectNBSP, European number format, or hyphensRemove CHAR(160), use NUMBERVALUE, or replace values
Formatting is lostPivotTable-specific formatting not appliedValue Field Settings > Number Format

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *