Don't make it count

By J. Carlton Collins

Q: My Excel 2013 PivotTables sometimes default to using the COUNT function instead of the SUM function. Is there a setting adjustment that will always make SUM the default PivotTable result?

A: When creating a PivotTable, Excel inspects each data column, and if the data contain all numbers, values, or formulas, Excel automatically uses the SUM function to summarize that column of data in the PivotTable. However, if the data being pivoted contain at least one blank cell, text, or an error value, Excel assumes the column contains text and uses the COUNT function to summarize the data. To avoid this problem, inspect and clean your source data of any non-values before you create your PivotTable. This can be achieved by overwriting any blank, text, or error values with a zero (0) to clean the data of any non-value entries.

techqa-1


Caveat: Unfortunately, once you have created an initial PivotTable that returns the unwanted COUNT result, Excel remembers that column to be a text-based column for subsequent PivotTables you create, even after you have cleaned your source data of non-value entries. Therefore, if you happen to have created a PivotTable that produces the unwanted COUNT function, you will need to delete that PivotTable and then clean your source data (effectively starting over); otherwise, all subsequent PivotTables you generate will produce the same undesired COUNT summary.

J. Carlton Collins (carlton@asaresearch.com) is a technology consultant, a CPE instructor, and a JofA contributing editor.

Submit a question

Do you have technology questions for this column? Or, after reading an answer, do you have a better solution? Send them to jofatech@aicpa.org. We regret being unable to individually answer all submitted questions.

SPONSORED REPORT

CPEOs provide peace of mind around payroll services

The creation of these new IRS-certified service providers for small businesses clarifies some issues around traditional professional employer organizations.

QUIZ

Pronoun practice to help polish your prose

Using pronouns correctly in writing and speech can help you make a good impression. Try our 10-question quiz.