PC Review


Reply
Thread Tools Rate Thread

COUNTIF for 2 conditions

 
 
=?Utf-8?B?QnJ1Y2U=?=
Guest
Posts: n/a
 
      15th Jun 2005
How do you countif for 2 conditions?

countif ( A1 = "Red" and "B1 = blue")

Bruce
 
Reply With Quote
 
 
 
 
mangesh_yadav
Guest
Posts: n/a
 
      15th Jun 2005

you could use a sumproduct

=SUMPRODUCT(--(A1:A10="red"),--(B1:B10="blue"))

Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=37926

 
Reply With Quote
 
abc
Guest
Posts: n/a
 
      15th Jun 2005
Assume you have following data as a1:b6, fill c1:c6 with 1
Blue Red 1
Red Blue 1
Blue Blue 1
Orange Red 1
Blue Red 1
Red Black 1

in Cell A7 input following formula
=COUNT(IF((A1:A6="blue")*(B1:B6="red"),C11:C16)) and press
"Ctrl"+"Shift"+"Enter" for array calculation



"Bruce" <(E-Mail Removed)> ¦b¶l¥ó
news:0045152E-8139-4D47-9E92-(E-Mail Removed) ¤¤¼¶¼g...
> How do you countif for 2 conditions?
>
> countif ( A1 = "Red" and "B1 = blue")
>
> Bruce



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      15th Jun 2005
=SUMPRODUCT(--(A2:A100="Red"),--(B2:B100="Blue"))

--
HTH

Bob Phillips

"Bruce" <(E-Mail Removed)> wrote in message
news:0045152E-8139-4D47-9E92-(E-Mail Removed)...
> How do you countif for 2 conditions?
>
> countif ( A1 = "Red" and "B1 = blue")
>
> Bruce



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: COUNTIF With Conditions RoadKill Microsoft Excel Worksheet Functions 1 31st Oct 2008 01:15 AM
Countif Conditions - Use of conditions that vary by cell value JonTarg Microsoft Excel Misc 1 30th May 2008 01:21 PM
Countif with Conditions =?Utf-8?B?R2FyeQ==?= Microsoft Excel Worksheet Functions 2 12th Jun 2007 08:10 PM
Countif with two different conditions =?Utf-8?B?Vmlja3k=?= Microsoft Excel Discussion 1 14th May 2006 10:53 AM
I Want To Use Countif With 2 Conditions JAYDE Microsoft Excel Worksheet Functions 1 10th Sep 2003 09:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:57 AM.