Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Countif with Multiple Not Conditions

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Countif with Multiple Not Conditions

Look at SUMPRODUCT:

=SUMPRODUCT(--(a5:a7<"Good
Monitor"),--(b5:b7<"Good Keyboard,"),--(B5:b7<"So So Keyboard"))


The -- coercises the TRUE/FALSE conditions to 1/0.

HTH

"Chart_Maker_Wonderer" wrote:

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Countif with Multiple Not Conditions

Will that produce a result that if I put that in a spreadsheet and if there
are 5 rows that do not have any of the stuff I am putting into the formula it
will return a value of 5?

"Toppers" wrote:

Look at SUMPRODUCT:

=SUMPRODUCT(--(a5:a7<"Good
Monitor"),--(b5:b7<"Good Keyboard,"),--(B5:b7<"So So Keyboard"))


The -- coercises the TRUE/FALSE conditions to 1/0.

HTH

"Chart_Maker_Wonderer" wrote:

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Countif with Multiple Not Conditions

If all entries are blank for "n" rows you will get "n" as an answer.

Why not try it?

"Chart_Maker_Wonderer" wrote:

Will that produce a result that if I put that in a spreadsheet and if there
are 5 rows that do not have any of the stuff I am putting into the formula it
will return a value of 5?

"Toppers" wrote:

Look at SUMPRODUCT:

=SUMPRODUCT(--(a5:a7<"Good
Monitor"),--(b5:b7<"Good Keyboard,"),--(B5:b7<"So So Keyboard"))


The -- coercises the TRUE/FALSE conditions to 1/0.

HTH

"Chart_Maker_Wonderer" wrote:

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Countif with Multiple Not Conditions

I am currently trying it and it looks like it will only return the number of
times that the conditions are matched in the first column of calculations.

"Toppers" wrote:

If all entries are blank for "n" rows you will get "n" as an answer.

Why not try it?

"Chart_Maker_Wonderer" wrote:

Will that produce a result that if I put that in a spreadsheet and if there
are 5 rows that do not have any of the stuff I am putting into the formula it
will return a value of 5?

"Toppers" wrote:

Look at SUMPRODUCT:

=SUMPRODUCT(--(a5:a7<"Good
Monitor"),--(b5:b7<"Good Keyboard,"),--(B5:b7<"So So Keyboard"))

The -- coercises the TRUE/FALSE conditions to 1/0.

HTH

"Chart_Maker_Wonderer" wrote:

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Countif with Multiple Not Conditions


There was a typo im my formula .. an extraneous "," in the second parameter
{"Good Keyboard,"} but if I have the following in A2:B7

A3="Good Monitor"
B4="Good Keyboard"
B6="So so keyboard"

I get a result of 3 i.e. Rows 2,5 and 7 are blank

Is this correct?



"Chart_Maker_Wonderer" wrote:

I am currently trying it and it looks like it will only return the number of
times that the conditions are matched in the first column of calculations.

"Toppers" wrote:

If all entries are blank for "n" rows you will get "n" as an answer.

Why not try it?

"Chart_Maker_Wonderer" wrote:

Will that produce a result that if I put that in a spreadsheet and if there
are 5 rows that do not have any of the stuff I am putting into the formula it
will return a value of 5?

"Toppers" wrote:

Look at SUMPRODUCT:

=SUMPRODUCT(--(a5:a7<"Good
Monitor"),--(b5:b7<"Good Keyboard"),--(B5:b7<"So So Keyboard"))

The -- coercises the TRUE/FALSE conditions to 1/0.

HTH

"Chart_Maker_Wonderer" wrote:

Is there a way that I can use OR and NOT statements in Countif statements?

I am working on an inventory sheet where it will count how many stations do
not working.

To determine that the station is good I have some different text, and if the
station is not working I have other text the person can type.

What I would like to do is to have Countif(a5:a7<"Good
Monitor",b5:b7<"Good Keyboard,B5:b7<"So So Keyboard")

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
COUNTIF with multiple conditions? Eric Excel Worksheet Functions 7 October 17th 06 02:25 AM
COUNTIF with multiple conditions Eric Excel Discussion (Misc queries) 3 October 16th 06 06:29 PM
COUNTIF Multiple Conditions Paul Sheppard Excel Discussion (Misc queries) 5 December 28th 05 07:03 PM
COUNTIF and multiple conditions Sami Excel Worksheet Functions 1 September 28th 05 09:03 AM
COUNTIF - multiple conditions allphin Excel Worksheet Functions 4 September 18th 05 04:05 PM


All times are GMT +1. The time now is 05:27 AM.

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"