Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot Table - Is counting all rows

I am doing a count on a field and it is counting all the rows in the
column - even though most of them are blank.

This could be because of the formula I have in all the cells.

I basically have a formula (in Y2) that says
=if((k2)="Completed",K2,"")

So if K2 has a value it populates Y2 with that value otherwise it puts
nothing ("").

Any ideas how to keep it from counting every row.

Thanks
Jim

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Pivot Table - Is counting all rows

=if(k2="completed",1,0)
And use sum (not count)

or
=--(k2="completed")
k2="completed" will be true or false
--(true or false) will be 1 or 0.

Count works like =counta(). If there's anything in the cell (even a formula
that evaluates to ""), it gets counted. The cell has to be really empty (no
formula, no value) not to be counted.



wrote:

I am doing a count on a field and it is counting all the rows in the
column - even though most of them are blank.

This could be because of the formula I have in all the cells.

I basically have a formula (in Y2) that says
=if((k2)="Completed",K2,"")

So if K2 has a value it populates Y2 with that value otherwise it puts
nothing ("").

Any ideas how to keep it from counting every row.

Thanks
Jim


--

Dave Peterson
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 entries in a pivot table Keith Excel Discussion (Misc queries) 0 October 3rd 06 12:26 PM
Pivot table and counting. sacredarms Excel Discussion (Misc queries) 2 January 2nd 06 02:30 PM
Counting .5 in a pivot table mtcurtis Excel Worksheet Functions 1 September 8th 05 05:56 PM
counting in pivot table Marisa Excel Worksheet Functions 14 August 15th 05 04:58 PM
Pivot table and counting ChristopherH Excel Worksheet Functions 1 November 20th 04 01:26 PM


All times are GMT +1. The time now is 08:49 PM.

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

About Us

"It's about Microsoft Excel"