Thread: sum a countif
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default sum a countif

Isn't it just the range not equal to "ok".

=COUNTIF(F4:F53,"<ok")

"tamiluchi" wrote:

I can't make this work. I'm using this formula
=SUM((IF((F4:F53="ok"),1,1))-(IF((F4:F53="ok"),1,0)))
I want a total count of cells in the range f4:f53 less the count of cells
with the value "ok" in the same range.

I also need to do this with the cells in ranges g4:g53 combined with i4:i53.
Please help. I'm not getting the right answers.
Thanks
Tammie