Why does my Excel pivottable uses count instead of sum

  • Thread starter Marcus Ahlbäck
  • Start date
M

Marcus Ahlbäck

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?
 
D

Debra Dalgleish

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

bpeltzer

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'.
 
M

Marcus Ahlbäck

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).
 
Top