ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countif with 2 criteria (https://www.excelbanter.com/excel-discussion-misc-queries/136572-countif-2-criteria.html)

mldancing

Countif with 2 criteria
 
I need to count if there's the number of ocurrences containing 100/101 but
when it does not have the word "cancel".

May be something like that:

COUNTIF(A1:A10,"*100/101*") but <"cancel"

Please help.

Max

Countif with 2 criteria
 
One way:
=SUMPRODUCT((ISNUMBER(SEARCH("100/101",A1:A10))*ISERROR(SEARCH("cancel",A1:A10))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"mldancing" wrote:
I need to count if there's the number of ocurrences containing 100/101 but
when it does not have the word "cancel".

May be something like that:

COUNTIF(A1:A10,"*100/101*") but <"cancel"

Please help.


Teethless mama

Countif with 2 criteria
 
=SUM(IF(ISNUMBER(SEARCH("100/101",A1:A100))*(NOT(ISNUMBER(SEARCH("cancel",A1:A1 00)))),1))

ctrl+shift+enter, not just enter

"mldancing" wrote:

I need to count if there's the number of ocurrences containing 100/101 but
when it does not have the word "cancel".

May be something like that:

COUNTIF(A1:A10,"*100/101*") but <"cancel"

Please help.


mldancing

Countif with 2 criteria
 
Both way works ... Thank you, Max and teethless mama!



"Teethless mama" wrote:

=SUM(IF(ISNUMBER(SEARCH("100/101",A1:A100))*(NOT(ISNUMBER(SEARCH("cancel",A1:A1 00)))),1))

ctrl+shift+enter, not just enter

"mldancing" wrote:

I need to count if there's the number of ocurrences containing 100/101 but
when it does not have the word "cancel".

May be something like that:

COUNTIF(A1:A10,"*100/101*") but <"cancel"

Please help.


mldancing

Countif with 2 criteria
 
One question:

when do you decide that you have to use ctrl+shift+enter?



"Teethless mama" wrote:

=SUM(IF(ISNUMBER(SEARCH("100/101",A1:A100))*(NOT(ISNUMBER(SEARCH("cancel",A1:A1 00)))),1))

ctrl+shift+enter, not just enter

"mldancing" wrote:

I need to count if there's the number of ocurrences containing 100/101 but
when it does not have the word "cancel".

May be something like that:

COUNTIF(A1:A10,"*100/101*") but <"cancel"

Please help.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com