#1   Report Post  
Spencer Hutton
 
Posts: n/a
Default COUNTIF

Is there a way to get countif to calculate this expresion.
"Count the number of cells in column A, if the corresponding cell in column
B equals yes"
TIA
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
do you mean
=SUMPRODUCT(--(A1:A100<""),--(B1:B100="yes"))

--
Regards
Frank Kabel
Frankfurt, Germany
"Spencer Hutton" <Spencer schrieb im
Newsbeitrag ...
Is there a way to get countif to calculate this expresion.
"Count the number of cells in column A, if the corresponding cell in
column
B equals yes"
TIA



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Wouldn't that be the same count of the number of cells in B that are Yes?

=countif(b:b,"yes")



Spencer Hutton wrote:

Is there a way to get countif to calculate this expresion.
"Count the number of cells in column A, if the corresponding cell in column
B equals yes"
TIA


--

Dave Peterson
  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Why can't you just use

=COUNTIF(B:B,"yes")

I mean unless you have a condition that needs to be met in A the above
should be enough, if
there is a condition in A as well you can use

=SUMPRODUCT(--(A1:A200="condition1"),--(B1:B200="yes"))


--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Spencer Hutton" <Spencer wrote in message
...
Is there a way to get countif to calculate this expresion.
"Count the number of cells in column A, if the corresponding cell in
column
B equals yes"
TIA



  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

If there is nothing that must holds for column A itself...

=COUNTIF(B:B,"yes")

should suffice.

If column A must have data while column B is "yes"...

=SUMPRODUCT(1-ISBLANK(A2:A100),--(B2:B100="yes"))

The latter won't admit whole column references like A:A as range
arguments.

Spencer Hutton wrote:
Is there a way to get countif to calculate this expresion.
"Count the number of cells in column A, if the corresponding cell in column
B equals yes"
TIA



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
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
Countif ??? terryv Excel Worksheet Functions 2 November 8th 04 09:03 AM
Countif, Sumif, If - help! Angel160 Excel Worksheet Functions 2 November 3rd 04 05:23 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 02:26 PM.

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"