#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DES DES is offline
external usenet poster
 
Posts: 3
Default Countif?

Ok this should be trivial to do, but I am going blank today.

We got 425 questionnaires back from a survey we sent out.
I have 3 columns of True or false.

I want to be able to count a record if either column a OR column B is true
AND column C is true

I know this should be easy but just cannot get it to work.


TIA
--
Darrell
Play every game as if it were your last....
Someday you will be right.




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Countif?

With
A2:C500 containing True/False values

This formula returns the count of rows where
either Col_A or Col_B is TRUE
AND where Col_C is TRUE

=SUMPRODUCT(((A2:A500+B2:B500)0)*C2:C500)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"DES" wrote:

Ok this should be trivial to do, but I am going blank today.

We got 425 questionnaires back from a survey we sent out.
I have 3 columns of True or false.

I want to be able to count a record if either column a OR column B is true
AND column C is true

I know this should be easy but just cannot get it to work.


TIA
--
Darrell
Play every game as if it were your last....
Someday you will be right.





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Countif?

I had trouble with: "I want to be able to count a record if either column a
OR column B is true AND column C is true"

This counts one column =COUNTIF(A1:A7,TRUE)
This counts is BOTH A and B are TRUE =SUMPRODUCT((A1:A7=TRUE)*(B1:B7=TRUE))
This counts is EITHER A or B is TRUE
=SUMPRODUCT(--(((A1:A7=TRUE)+(B1:B7=TRUE))0))
This counts if any 2 of three is TRUE
=SUMPRODUCT(--(((A1:A7=TRUE)+(B1:B7=TRUE)+(C1:C7=TRUE))1))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"DES" wrote in message
...
Ok this should be trivial to do, but I am going blank today.

We got 425 questionnaires back from a survey we sent out.
I have 3 columns of True or false.

I want to be able to count a record if either column a OR column B is true
AND column C is true

I know this should be easy but just cannot get it to work.


TIA
--
Darrell
Play every game as if it were your last....
Someday you will be right.






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DES DES is offline
external usenet poster
 
Posts: 3
Default Countif?

Thanks, works perfectly. I forgot that true=1 and false = 0

Obviously I am just a casual user.


"Ron Coderre" wrote in message
...
With
A2:C500 containing True/False values

This formula returns the count of rows where
either Col_A or Col_B is TRUE
AND where Col_C is TRUE

=SUMPRODUCT(((A2:A500+B2:B500)0)*C2:C500)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"DES" wrote:

Ok this should be trivial to do, but I am going blank today.

We got 425 questionnaires back from a survey we sent out.
I have 3 columns of True or false.

I want to be able to count a record if either column a OR column B is
true
AND column C is true

I know this should be easy but just cannot get it to work.


TIA
--
Darrell
Play every game as if it were your last....
Someday you will be right.







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DES DES is offline
external usenet poster
 
Posts: 3
Default Countif?

Thanks you , Not quite what I was looking for, but Ron got it for me.

In order for a record to be counted, Column C MUST be true AND either
Column A OR Column B (or both) must be true.


"Bernard Liengme" wrote in message
...
I had trouble with: "I want to be able to count a record if either column a
OR column B is true AND column C is true"

This counts one column =COUNTIF(A1:A7,TRUE)
This counts is BOTH A and B are TRUE
=SUMPRODUCT((A1:A7=TRUE)*(B1:B7=TRUE))
This counts is EITHER A or B is TRUE
=SUMPRODUCT(--(((A1:A7=TRUE)+(B1:B7=TRUE))0))
This counts if any 2 of three is TRUE
=SUMPRODUCT(--(((A1:A7=TRUE)+(B1:B7=TRUE)+(C1:C7=TRUE))1))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"DES" wrote in message
...
Ok this should be trivial to do, but I am going blank today.

We got 425 questionnaires back from a survey we sent out.
I have 3 columns of True or false.

I want to be able to count a record if either column a OR column B is
true AND column C is true

I know this should be easy but just cannot get it to work.


TIA
--
Darrell
Play every game as if it were your last....
Someday you will be right.








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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
HELP on COUNTIF ForgetMeNot Excel Worksheet Functions 2 November 5th 05 02:44 PM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 06:39 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"