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

Keeping client information safe in an age of scams and security threats

A look at the Dirty Dozen tax scams and ways to protect taxpayer information.

TECHNOLOGY Q&A

How to create maps in Excel 2016

Microsoft Excel 2016 has two new mapping capabilities. J. Carlton Collins, CPA, demonstrates how to make masterful 2D and 3D maps in Excel 2016.

QUIZ

News quiz: IRS enforcement, a hot job, and audit value

The IRS’s 2016 Data Book, a “hot job” of particular interest at this time of year, and insight into how executive and audit committees view the insights from financial statement audits received attention recently. See how much you know with this short quiz.