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 Countif does not equal

How to count the number of cells in a column which do not contain a certain
text string?
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Countif does not equal

To count the number of cells in a column that do not contain a certain text string, follow these steps:
  1. Select the cell where you want to display the result of the count.
  2. Type the formula
    Formula:
    =COUNTIF(range,"<"&text
    into the formula bar, where "range" is the range of cells you want to count and "text" is the text string you want to exclude.
  3. Press Enter to calculate the result.

For example, if you want to count the number of cells in column A that do not contain the text string "apple", you would use the formula
Formula:
=COUNTIF(A:A,"<"&"apple"
.

This formula works by using the "<" operator to exclude cells that contain the specified text string, and concatenating the text string with the "&" symbol to include cells that do not contain an exact match of the text string.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Countif does not equal

=COUNTIF(A1:A100,"<apple")


"JRD" wrote:

How to count the number of cells in a column which do not contain a certain
text string?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 783
Default Countif does not equal

Teethless mama wrote:
=COUNTIF(A1:A100,"<apple")


"JRD" wrote:


How to count the number of cells in a column which do not contain a certain
text string?


More responsively,

=COUNTIF(A1:A100,"<*apple*")

Alan Beban
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Countif does not equal

Alan Beban wrote...
....
More responsively,

=COUNTIF(A1:A100,"<*apple*")


And on the off chance the OP wants case-sensitive matching, the array
formula

=COUNT(FIND("apple",range))


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel Funny

Funny thing with Excel 2003, using =countif(A1:A14,"Apple"), just doesn't seem to count at times,but changing it to "Apples" gets you a count? Is it a bug or is it about Microsoft and Apple?
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Excel Funny

Apple < Apples

Try

=countif(A1:A14,"Apple*")
or
=countif(A1:A14,"*Apple*")

HTH,
Bernie
MS Excel MVP


<TJ Singh wrote in message ...
Funny thing with Excel 2003, using =countif(A1:A14,"Apple"), just doesn't seem to count at
times,but changing it to "Apples" gets you a count? Is it a bug or is it about Microsoft and
Apple?



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
can I make cell "yes" equal 1, "no" equal 0 can I make cell yes equal 1, no equa Excel Discussion (Misc queries) 4 April 22nd 23 06:09 AM
COUNTIF based on several criteria incl. a "does not equal" criteri MsBeverlee Excel Worksheet Functions 3 November 12th 07 08:32 PM
CountIf not Equal to. Pendelfin Excel Discussion (Misc queries) 4 February 27th 07 02:27 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Contains instead of Equal Jennifer Excel Worksheet Functions 4 September 13th 05 03:42 PM


All times are GMT +1. The time now is 08:49 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"