Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ChristopherH
 
Posts: n/a
Default Pivot table and counting

Hi.
I have a pivot table with 17,000 rows and 6 columns. The data is just a
count of what is in the columns.
Example: of fruit eaten during a day
apple oranges bananas total
bob 1 1 0 2
jane 1 0 1 2
fred 0 0 1 1
sue 0 0 0 0

How would I count up all the times that only a banana was eaten during a
day? Use an array or Formula? Not sure how I would do this with a pivot
table.

Thanks,
Chris



  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Chris,

i would use the SUMPRODUCT function

=SUMPRODUCT(--(D3:D17000=1),--(B3:B17000=0),--(C3:C17000=0))

for more details on the sumproduct function check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Cheers
JulieD


"ChristopherH" wrote in message
...
Hi.
I have a pivot table with 17,000 rows and 6 columns. The data is just a
count of what is in the columns.
Example: of fruit eaten during a day
apple oranges bananas total
bob 1 1 0 2
jane 1 0 1 2
fred 0 0 1 1
sue 0 0 0 0

How would I count up all the times that only a banana was eaten during a
day? Use an array or Formula? Not sure how I would do this with a pivot
table.

Thanks,
Chris





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
counting in pivot table Marisa Excel Worksheet Functions 14 August 15th 05 04:58 PM
Counting question sjs Excel Discussion (Misc queries) 5 December 2nd 04 09:24 AM
Pivot table, how do you exclude counting cells with formulas as a Greg Bobak Excel Worksheet Functions 4 November 4th 04 12:05 AM


All times are GMT +1. The time now is 03:50 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"