Advertisement
Tech

Microsoft Excel Help: Why Do Subtotals Come Out As Counts?

Problem: You added automatic subtotals to this dataset. As shown in Fig. 685, the subtotals of four for Air Canada and five for Ainsworth are clearly not correct. What went wrong?

By Mr Excel
Desk Tech
Reading time 2 min read
Word count 338
Windows platform Computing Microsoft excel
Microsoft Excel Help: Why Do Subtotals Come Out As Counts?
Advertisement
Quick Take

Problem: You added automatic subtotals to this dataset. As shown in Fig. 685, the subtotals of four for Air Canada and five for Ainsworth are clearly not correct. What went wrong?

On this page

Strategy: The first time that you subtotal a dataset, Excel assumes that you want to subtotal the final column in the dataset. If this column contains text data, then the subtotals dialog will default to a Count instead of a Sum, as shown in Fig. 686.

Gotcha: This problem will also happen even if your final column contains mostly numbers but includes one blank cell.

Advertisement

Summary: Excel’s Intellisense often gives you the correct choices, so you may get lulled into the habit of rarely paying attention to the Use Function field in the Subtotals dialog. When you see Counts instead of Sums, you will know how to correct it.

Commands Discussed: Subtotals To correct the problem once it appears, open the Subtotals dialog again. As shown in Fig. 687, change the Use Function dropdown from Count to Sum. Choose OK. To avoid the problem in the first place, remember to double-check the Use Function field in the Subtotals dialog, particularly if your data has text in the rightmost column.

Advertisement

Images

Fig. 686

Fig. 687

Advertisement

The first time that you subtotal a dataset, Excel assumes that you want to subtotal the final column in the dataset. If this column contains text data, then the subtotals dialog will default to a Count instead of a Sum, as shown in Fig. 686.

Gotcha: This problem will also happen even if your final column contains mostly numbers but includes one blank cell.

Advertisement

Summary: Excel’s Intellisense often gives you the correct choices, so you may get lulled into the habit of rarely paying attention to the Use Function field in the Subtotals dialog. When you see Counts instead of Sums, you will know how to correct it.

Commands Discussed: Subtotals

Advertisement

To correct the problem once it appears, open the Subtotals dialog again. As shown in Fig. 687, change the Use Function dropdown from Count to Sum. Choose OK.

To avoid the problem in the first place, remember to double-check the Use Function field in the Subtotals dialog, particularly if your data has text in the rightmost column.

Advertisement
Keep Exploring

More from Tech

Filed under
Windows platform Computing
More topics
Microsoft excel
Advertisement