Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default 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.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default 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.

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
countif but have two criteria Ani63 New Users to Excel 14 September 18th 06 09:28 PM
countif criteria Chris Morley Excel Worksheet Functions 6 June 17th 06 01:27 PM
COUNTIF with two criteria Boran Düzgün Excel Worksheet Functions 3 March 7th 06 10:43 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"