ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Why does my Excel pivottable uses count instead of sum (https://www.excelbanter.com/excel-discussion-misc-queries/54272-why-does-my-excel-pivottable-uses-count-instead-sum.html)

Marcus Ahlbäck

Why does my Excel pivottable uses count instead of sum
 
When I create a pivottable from some imported data Excel (2003 SP2) sometimes
chooses to summarize the data by using the function "count" instead of "sum",
which I then have change manually. What is it in the database that is
triggering Excel to choose either function?

Debra Dalgleish

Why does my Excel pivottable uses count instead of sum
 
If a field contains blanks, or text, the Count function is used.
Otherwise, the Sum function is used.

Marcus wrote:
When I create a pivottable from some imported data Excel (2003 SP2) sometimes
chooses to summarize the data by using the function "count" instead of "sum",
which I then have change manually. What is it in the database that is
triggering Excel to choose either function?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


bpeltzer

Why does my Excel pivottable uses count instead of sum
 
You can see which function Excel has chosen when creating the layout; look
at the name: SumOfValue or CountOfValue. If you need to change it,
double-click on the entry ('CountOfValue') and choose a different function
under 'SummarizeBy'.

"Marcus Ahlbäck" wrote:

When I create a pivottable from some imported data Excel (2003 SP2) sometimes
chooses to summarize the data by using the function "count" instead of "sum",
which I then have change manually. What is it in the database that is
triggering Excel to choose either function?


Marcus Ahlbäck

Why does my Excel pivottable uses count instead of sum
 
Thanks for o quick reply

Seems like the Count function is used if the data field contains
error-values as well.
Not so bad really, as it offers a way to debugging and cleaning the database
(if I get a count-function I can take that as a hint that I might have some
cleaning to do).

"Debra Dalgleish" wrote:

If a field contains blanks, or text, the Count function is used.
Otherwise, the Sum function is used.

Marcus wrote:
When I create a pivottable from some imported data Excel (2003 SP2) sometimes
chooses to summarize the data by using the function "count" instead of "sum",
which I then have change manually. What is it in the database that is
triggering Excel to choose either function?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com