Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRD JRD is offline
external usenet poster
 
Posts: 60
Default Counting cells that don't contain certain text

Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" - in
this case the answer would be 6

Many thanks



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default Counting cells that don't contain certain text

See if this does the trick.

=COUNTA(A1:A9)-COUNTIF(A1:A9,"Yes")

"JRD" wrote:

Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" - in
this case the answer would be 6

Many thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Counting cells that don't contain certain text

Hi!

Try this:

=COUNTIF(A1:A9,"<yes")

That will include empty and blank cells.

If you want to exclude empty/blank cells:

=SUMPRODUCT(--(A1:A9<""),--(A1:A9<"yes"))

Biff

"JRD" wrote in message
...
Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" -
in
this case the answer would be 6

Many thanks





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Counting cells that don't contain certain text

or if all cells are filled and j9 is the last cell with data
=COUNTIF(J1:J9,"<yes")

--
Don Guillett
SalesAid Software

"JRD" wrote in message
...
Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" -
in
this case the answer would be 6

Many thanks





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Counting cells that don't contain certain text

Try...

=COUNTIF(A2:A10,"?*")-COUNTIF(A2:A10,"Yes")

Hope this helps!

In article ,
JRD wrote:

Is there a quick and easy way of counting the number of cells that don't
contain certain text strings

For example

Column A

Yes
No
Yes
Maybe
Maybe
No
Certainly
Definately
Yes

How could I count the number of cells that don't contain the word "yes" - in
this case the answer would be 6

Many 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
How to set a number number value as text in all cells ? Paul Peters Excel Worksheet Functions 0 August 11th 06 07:27 AM
getting a total for a row of cells where some are text babs Excel Discussion (Misc queries) 1 February 1st 06 04:51 PM
Cells formated as text do not always display properly Cass Excel Discussion (Misc queries) 2 July 23rd 05 01:59 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Excel - counting cells containing a text string Pegasus Host Excel Worksheet Functions 4 February 12th 05 07:31 PM


All times are GMT +1. The time now is 09:58 AM.

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"