PC Review


Reply
Thread Tools Rate Thread

COUNTIF, SUMPRODUCT, or something else

 
 
Count-Adi
Guest
Posts: n/a
 
      15th Jan 2010
Sorry, I have another question. What about having 30 columns from where I
should count these yes- values with the same condition? It will be a long
formula. Is there anything else that might be shorter?

Thanks

"Per Jessen" wrote:

> Hi
>
> This should do it:
>
> =SUMPRODUCT(--(C1:C11=1),--(D111="yes"))+SUMPRODUCT(--(C1:C11=1),--(E1:E11="yes"))
>
> Regards,
> Per
>
> "Count-Adi" <Count-(E-Mail Removed)> skrev i meddelelsen
> news:C2B2570B-8263-4955-B5AB-(E-Mail Removed)...
> >I am trying to use COUNTIF function where the range might vary. For
> >instance,
> > I want to know how many yes I have in column D and E together, with the
> > condition that C will be only equal with 1.
> >
> > C D E
> > 1
> > 1 Yes
> > 1 Yes
> > 1
> > 2 Yes
> > 2
> > 2 Yes
> > 3 Yes
> > 3 Yes
> > 3 Yes
> > 3
> >
> > {=COUNTIF(IF($C$1:$C$11=1,$D$1:$E$11,0),"yes”)} should be 2.
> >
> > Thanks for your help.

 
Reply With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      17th Jan 2010
=SUMPRODUCT((C1:C18=1)*(D1:E18="Yes"))



"Count-Adi" wrote:

> Sorry, I have another question. What about having 30 columns from where I
> should count these yes- values with the same condition? It will be a long
> formula. Is there anything else that might be shorter?
>
> Thanks
>
> "Per Jessen" wrote:
>
> > Hi
> >
> > This should do it:
> >
> > =SUMPRODUCT(--(C1:C11=1),--(D111="yes"))+SUMPRODUCT(--(C1:C11=1),--(E1:E11="yes"))
> >
> > Regards,
> > Per
> >
> > "Count-Adi" <Count-(E-Mail Removed)> skrev i meddelelsen
> > news:C2B2570B-8263-4955-B5AB-(E-Mail Removed)...
> > >I am trying to use COUNTIF function where the range might vary. For
> > >instance,
> > > I want to know how many yes I have in column D and E together, with the
> > > condition that C will be only equal with 1.
> > >
> > > C D E
> > > 1
> > > 1 Yes
> > > 1 Yes
> > > 1
> > > 2 Yes
> > > 2
> > > 2 Yes
> > > 3 Yes
> > > 3 Yes
> > > 3 Yes
> > > 3
> > >
> > > {=COUNTIF(IF($C$1:$C$11=1,$D$1:$E$11,0),"yes”)} should be 2.
> > >
> > > Thanks for your help.

 
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
COUNTIF or SUMPRODUCT Jimmy1982 Microsoft Excel Misc 1 16th Oct 2008 01:55 AM
Countif and Sumproduct Sandy Microsoft Excel Worksheet Functions 4 18th Aug 2007 10:08 PM
sumproduct or countif =?Utf-8?B?ZHIzNTB4?= Microsoft Excel Misc 7 16th Jun 2007 03:27 PM
Sumproduct and Countif lindsey1975@googlemail.com Microsoft Excel Misc 0 2nd Apr 2007 02:51 PM
Sumproduct or Countif? =?Utf-8?B?UmVuZWUn?= Microsoft Excel Misc 7 29th Oct 2004 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:03 PM.