When a pivot table shows Count of Amount instead of Sum of Amount, the cause is almost always the source column, not a fault in the pivot table. Excel chooses the calculation by looking at the data.
Why Excel chooses Count
When you add a number field to the Values area, Excel uses Sum if every cell in the column holds a number. If the column contains any text or blank cells, Excel uses Count. Excel makes this choice when you add the field, so a text entry or blank cell in the column at that moment can change the default.
Switch the calculation
- Right-click any value in the field, or click the arrow beside the field in the Values area.
- Choose Summarize Values By.
- Pick Sum, Count, Average or another option.
The label updates to match, such as Sum of Amount.
Check for numbers stored as text
Numbers stored as text are the most common trigger. They look like numbers, but Excel treats them as words. Signs include numbers aligned to the left and small green triangles in the corner of the cell.
To fix them, select the cells, click the warning icon that appears beside them and choose Convert to Number. For other methods, see how to convert text to number in excel.
After converting, refresh the pivot table. You may still need to change the calculation to Sum, because the default was set when the field was added.
Check for blank cells
Blank cells in the value column also cause Count. If a blank truly means zero, enter 0. If a blank means unknown or not applicable, leave it empty and switch the field to Sum by hand. Filling in zeros where the blank meant something else will give a misleading total.
Count is not the same as distinct count
Count tallies the rows that contain something, so three orders from one customer count as three. It doesn’t count unique items. To count distinct customers, Excel offers a Distinct Count option, but only if the data was added to the Data Model when the pivot table was created. For a formula instead, learn how to count unique values in excel.
Count with a formula
For a single count in one cell, rather than a summary table, a formula is simpler. Learn how to use countif in excel for the basic pattern.
Totals that show 0
If a sum shows 0 even though the numbers look right, the numbers are probably stored as text. That’s the same problem described in why does sum show 0 in excel.