Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 177
Default Count Cells That Don't Contain the Following Text Strings

=COUNTIF(Fundamentals!$B$2:$B$1000,OR("<*honey*", "<*cows*"))

this doesn't work...

any suggestions?

thanks very much.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Count Cells That Don't Contain the Following Text Strings

If I read this right it will count all records that have neither Honey or
cows in the text

I think it is equivalent to NOT AND("=*honey*","=*cows*"))

since you have not told us what you want I have no suggestions.


"SteveC" wrote in message
...
=COUNTIF(Fundamentals!$B$2:$B$1000,OR("<*honey*", "<*cows*"))

this doesn't work...

any suggestions?

thanks very much.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Count Cells That Don't Contain the Following Text Strings

If I understand correctly, this may do what you want.

=COUNTA(D1:D10)-(COUNTIF(D1:D10,"honey")+COUNTIF(D1:D10,"cows"))

Change the D1:D10 to yours.

HTH
Regards,
Howard

"SteveC" wrote in message
...
=COUNTIF(Fundamentals!$B$2:$B$1000,OR("<*honey*", "<*cows*"))

this doesn't work...

any suggestions?

thanks very much.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Count Cells That Don't Contain the Following Text Strings

Probably this would be safer, as its not clear if 'honey' or 'cows' could appear within any cell together.

=SUMPRODUCT(N(LEN(SUBSTITUTE(SUBSTITUTE(Fundamenta ls!$B$2:$B$1000,"cows",""),"honey",""))=LEN(Fundam entals!$B$2:$B$1000)))


Regards
Robert McCurdy

"SteveC" wrote in message ...
=COUNTIF(Fundamentals!$B$2:$B$1000,OR("<*honey*", "<*cows*"))

this doesn't work...

any suggestions?

thanks very much.
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
Count text cells based on two criteria aet999 Excel Worksheet Functions 9 May 2nd 09 03:20 AM
How can I fill a series in Nonadjacent cells eg Text 1, Text 2 juikijui Excel Discussion (Misc queries) 6 September 2nd 06 12:43 AM
count cells containing text Lisa W Excel Worksheet Functions 5 March 16th 06 12:48 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM


All times are GMT +1. The time now is 01:55 PM.

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"