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

How the election may affect taxation of business income

This report summarizes recent proposals to reform the U.S. business income tax system and considers the path to enactment of any such legislation.

VIDEO

How to Excel pivot a general ledger

The general ledger is a vast historical data archive of your company's financial activities, including revenue, expenses, adjustments, and account balances. J. Carlton Collins, CPA, shows how to prepare data for, and mine data with, PivotTables.

QUIZ

Did you follow 2016’s biggest accounting news?

CPAs will remember 2016 as a year of new standards and new faces. How well did you follow the biggest accounting events? The 7 questions in this quiz will help you find out