Conditional Countif

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

It appears all of the solutions work ... thanks. How would I add multiple
aguements in column B, the same column as oranges, i.e., pears, melons, etc?
 
=SUMPRODUCT(((A1:A10="apples")+(A1:A10="grapes"))*((B1:B10="oranges")+(B1:B1
0="pears")))
 
This one doesnt work properly ...These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.
 
force530 wrote:
[...]
These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.
[...]

=SUMPRODUCT(--ISNUMBER(MATCH($A$2:$A$10,{"apples","grapes"},0)),--ISNUMBER(MATCH($B$2:$B$10,{"oranges","pears"},0)))
 
Thanks for the reply ...

Okay here is the actual formula ... It will not add the "Filed-Arrest
Felony" when entered. The formula is accepted, but wont add the last part.

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"})))


Aladin Akyurek said:
force530 wrote:
[...]
These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.
[...]

=SUMPRODUCT(--ISNUMBER(MATCH($A$2:$A$10,{"apples","grapes"},0)),--ISNUMBER(MATCH($B$2:$B$10,{"oranges","pears"},0)))
 
It just doest seem to recognize the "filed-arrest felony"

force530 said:
Thanks for the reply ...

Okay here is the actual formula ... It will not add the "Filed-Arrest
Felony" when entered. The formula is accepted, but wont add the last part.

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"})))


Aladin Akyurek said:
force530 wrote:
[...]
These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.
[...]

=SUMPRODUCT(--ISNUMBER(MATCH($A$2:$A$10,{"apples","grapes"},0)),--ISNUMBER(MATCH($B$2:$B$10,{"oranges","pears"},0)))
 
You need 0 in the second MATCH too...

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"},0)))
It just doest seem to recognize the "filed-arrest felony"

:

Thanks for the reply ...

Okay here is the actual formula ... It will not add the "Filed-Arrest
Felony" when entered. The formula is accepted, but wont add the last part.

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"})))


:

force530 wrote:
[...]

These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.

[...]

=SUMPRODUCT(--ISNUMBER(MATCH($A$2:$A$10,{"apples","grapes"},0)),--ISNUMBER(MATCH($B$2:$B$10,{"oranges","pears"},0)))
 
Works great ..... Thanks!

Aladin Akyurek said:
You need 0 in the second MATCH too...

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"},0)))
It just doest seem to recognize the "filed-arrest felony"

:

Thanks for the reply ...

Okay here is the actual formula ... It will not add the "Filed-Arrest
Felony" when entered. The formula is accepted, but wont add the last part.

=SUMPRODUCT(--ISNUMBER(MATCH('OFFENSE LOG'!$F$7:$F$57,{"Murder","Capital
Murder"},0)),--ISNUMBER(MATCH('OFFENSE LOG'!$P$7:$P$57,{"filed-at large
felony","filed-arrest felony"})))


:



force530 wrote:
[...]

These are the conditions; If Column A has
either apples and/or grapes I would like them to be counted only if oranges
or pears are in the same row in column B. i.e., A5=apples or grapes and B5=
oranges or pears, then the condition is met and it should reflect 1.

[...]

=SUMPRODUCT(--ISNUMBER(MATCH($A$2:$A$10,{"apples","grapes"},0)),--ISNUMBER(MATCH($B$2:$B$10,{"oranges","pears"},0)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top