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

Revenue recognition: A complex effort

Implementing the new standard requires careful judgment. Learn how to make significant accounting judgments and document them and collaborate with peers for consistent application.

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

News quiz: Taking an economic snapshot and looking to the future

Recent news included IRS actions that affect individuals and partnerships and a possibly influential move by a Big Four accounting firm.Take this short quiz to see how much you know about the news.