#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default sum a countif

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default sum a countif

Thanks. Yes, that's all it is. Talk about making it harder than it has to be!
What if I want to have the total count of 2 different ranges not equal to
'ok' in one cell?

"Toppers" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default sum a countif

=COUNTIF(F4:F53,"<ok")+COUNTIF(G4:G53,"<ok")

Or

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

"tamiluchi" wrote:

Thanks. Yes, that's all it is. Talk about making it harder than it has to be!
What if I want to have the total count of 2 different ranges not equal to
'ok' in one cell?

"Toppers" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default sum a countif

Thanks so much.
Tammie

"Toppers" wrote:

=COUNTIF(F4:F53,"<ok")+COUNTIF(G4:G53,"<ok")

Or

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

"tamiluchi" wrote:

Thanks. Yes, that's all it is. Talk about making it harder than it has to be!
What if I want to have the total count of 2 different ranges not equal to
'ok' in one cell?

"Toppers" wrote:

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

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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 08:47 AM.

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"