Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marcus Ahlbäck
 
Posts: n/a
Default 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?
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default 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

  #3   Report Post  
bpeltzer
 
Posts: n/a
Default 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?

  #4   Report Post  
Marcus Ahlbäck
 
Posts: n/a
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Count by color using VBA in Microsoft Excel Kam Excel Discussion (Misc queries) 1 October 28th 05 03:32 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
to How to use Excel formula to count the item annsmjarm Excel Discussion (Misc queries) 1 September 14th 05 12:35 PM
PivotTable - Count by Month Gigi Excel Worksheet Functions 3 January 1st 05 01:30 PM


All times are GMT +1. The time now is 12:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"