Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
counting entries in a pivot table | Excel Discussion (Misc queries) | |||
Pivot table and counting. | Excel Discussion (Misc queries) | |||
Counting .5 in a pivot table | Excel Worksheet Functions | |||
counting in pivot table | Excel Worksheet Functions | |||
Pivot table and counting | Excel Worksheet Functions |