#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default conditional COUNTIF

I want to count # of times a value(name) appears in a column IF, in another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default conditional COUNTIF

On the example, 'A1' & 'A6' should be 'A' & 'E' - thx

"Richard" wrote:

I want to count # of times a value(name) appears in a column IF, in another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default conditional COUNTIF

One way:

=SUMPRODUCT(--(A1:A100="Joe"),--(B1:B100="yes"))

In article ,
Richard wrote:

I want to count # of times a value(name) appears in a column IF, in another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default conditional COUNTIF

Try this:

=SUMPRODUCT(--(A1:A10="Joe"),--(B1:B10="Yes"))

Biff

"Richard" wrote in message
...
I want to count # of times a value(name) appears in a column IF, in another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default conditional COUNTIF

I have 50+ employees whose names I add to my "tracking" worksheet and I want
to quantify all of my data on my "analysis" sheet, so I'm getting data from
another sheet - don't know if this matters. I tried this:
=SUMPRODUCT(--('2007_Corrective'!C:C="LAST,
FIRST"),--('2007_Corrective'!F:F="yes"))
.... and I get #NUM! error.

"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(A1:A100="Joe"),--(B1:B100="yes"))

In article ,
Richard wrote:

I want to count # of times a value(name) appears in a column IF, in another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default conditional COUNTIF

You can't use entire columns as range references unless you're using Excel
2007.

Use a smaller range. Also, the ranges must be of equal size.

Biff

"Richard" wrote in message
...
I have 50+ employees whose names I add to my "tracking" worksheet and I
want
to quantify all of my data on my "analysis" sheet, so I'm getting data
from
another sheet - don't know if this matters. I tried this:
=SUMPRODUCT(--('2007_Corrective'!C:C="LAST,
FIRST"),--('2007_Corrective'!F:F="yes"))
... and I get #NUM! error.

"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(A1:A100="Joe"),--(B1:B100="yes"))

In article ,
Richard wrote:

I want to count # of times a value(name) appears in a column IF, in
another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default conditional COUNTIF

Thanks! That answered the question.

"T. Valko" wrote:

You can't use entire columns as range references unless you're using Excel
2007.

Use a smaller range. Also, the ranges must be of equal size.

Biff

"Richard" wrote in message
...
I have 50+ employees whose names I add to my "tracking" worksheet and I
want
to quantify all of my data on my "analysis" sheet, so I'm getting data
from
another sheet - don't know if this matters. I tried this:
=SUMPRODUCT(--('2007_Corrective'!C:C="LAST,
FIRST"),--('2007_Corrective'!F:F="yes"))
... and I get #NUM! error.

"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(A1:A100="Joe"),--(B1:B100="yes"))

In article ,
Richard wrote:

I want to count # of times a value(name) appears in a column IF, in
another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default conditional COUNTIF

Well, yes, the string you try to match does matter. *And*, except in
XL07, you can't use entire columns in array formulae, which SUMPRODUCT()
formulae are.

It's hard to know what to suggest without knowing whether you want to
quantify all of your data by name (in which case a pivot table would
probably be best), or to quantify all of your data by having a name in
the column C, in which case you could use something like

=SUMPRODUCT(--('2007_Corrective'!C1:C65000<""),--(F1:F65000="yes"))




In article ,
Richard wrote:

I have 50+ employees whose names I add to my "tracking" worksheet and I want
to quantify all of my data on my "analysis" sheet, so I'm getting data from
another sheet - don't know if this matters. I tried this:
=SUMPRODUCT(--('2007_Corrective'!C:C="LAST,
FIRST"),--('2007_Corrective'!F:F="yes"))
... and I get #NUM! error.

"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(A1:A100="Joe"),--(B1:B100="yes"))

In article ,
Richard wrote:

I want to count # of times a value(name) appears in a column IF, in
another
column on the same row, "yes" exists. Example:
A1 A6
Joe yes
Joe no
Joe yes

Count here should equal 2.
Thanks


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
CONDITIONAL / NESTED COUNTIF OrlandoFreeman Excel Worksheet Functions 3 July 2nd 06 01:07 AM
Conditional Countif force530 Excel Worksheet Functions 7 July 1st 05 10:08 PM
Conditional countif force530 Excel Worksheet Functions 6 July 1st 05 06:09 PM
countif conditional Ken Excel Worksheet Functions 1 June 15th 05 06:05 PM
Countif and Conditional Formatting Ramiro Espinoza Excel Worksheet Functions 1 February 2nd 05 05:21 PM


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