Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to write a count-if-not function?

I am trying to write a function that counts the the cells within a range that
do not include a certain phrase.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to write a count-if-not function?


Jsatter,

Take a look at the IS Functions in Excel, I am sure there is something
here that will help

Cheers
Jon


--
Jon Quixley
------------------------------------------------------------------------
Jon Quixley's Profile: http://www.excelforum.com/member.php...o&userid=25803
View this thread: http://www.excelforum.com/showthread...hreadid=562103

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default How to write a count-if-not function?

the quickest way to achieve what you're after is to use the FIND
function to search the text, which will return an error if it can't
find the relevant text. You can then use the ISERROR function with a
'--' infront to return ones and zeros which you can simply add up. You
will need to enter this as an array formula (hold ctrl+shift whilst
pressing enter).

So an example might be:

=SUM(--ISERROR(FIND("foobar",A1:A5)))


Rob




Jon Quixley wrote:
Jsatter,

Take a look at the IS Functions in Excel, I am sure there is something
here that will help

Cheers
Jon


--
Jon Quixley
------------------------------------------------------------------------
Jon Quixley's Profile: http://www.excelforum.com/member.php...o&userid=25803
View this thread: http://www.excelforum.com/showthread...hreadid=562103


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default How to write a count-if-not function?

Try:

=COUNTIF(A1:A5,"<*my phrase*")

HTH

"Jsatter" wrote:

I am trying to write a function that counts the the cells within a range that
do not include a certain phrase.

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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
Count function J-Raz Excel Worksheet Functions 2 February 12th 06 02:57 AM
... Count Function ... with any character ... Dr. Darrell Excel Discussion (Misc queries) 4 August 9th 05 10:00 PM
Count Function Help Josh O. Excel Worksheet Functions 4 July 29th 05 11:04 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM


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