#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 343
Default Countif question

I need to be able to check the range D19:AB19 for any occurrence of the
phrase On Call. That is easy enough with the formula below so my problem is
it could be entered as just On Call or On Call #1 or On Call #4 ect.

So what I need is something that will count the occurance of On Call or any
phrase containing On Call.

=COUNTIF(D19:AB19,"On Call")

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Countif question

Hi

You have to use a wildcard.

=COUNTIF(D19:AB19,"On Call*")

Regards,
Per

"Patrick C. Simonds" skrev i meddelelsen
...
I need to be able to check the range D19:AB19 for any occurrence of the
phrase On Call. That is easy enough with the formula below so my problem is
it could be entered as just On Call or On Call #1 or On Call #4 ect.

So what I need is something that will count the occurance of On Call or
any phrase containing On Call.

=COUNTIF(D19:AB19,"On Call")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Countif question

Use =COUNTIF(D19:AB19,"On Call*")
where the asterisk (*) is a wild card meaning "and anything else after On
Call"
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Patrick C. Simonds" wrote in message
...
I need to be able to check the range D19:AB19 for any occurrence of the
phrase On Call. That is easy enough with the formula below so my problem is
it could be entered as just On Call or On Call #1 or On Call #4 ect.

So what I need is something that will count the occurance of On Call or
any phrase containing On Call.

=COUNTIF(D19:AB19,"On Call")



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
pub pub is offline
external usenet poster
 
Posts: 29
Default Countif question

"Patrick C. Simonds" wrote in
:

I need to be able to check the range D19:AB19 for any occurrence of
the phrase On Call. That is easy enough with the formula below so my
problem is it could be entered as just On Call or On Call #1 or On
Call #4 ect.

So what I need is something that will count the occurance of On Call
or any phrase containing On Call.

=COUNTIF(D19:AB19,"On Call")



you should be able to use the wildcard *

try this
=COUNTIF(D19:AB19,"On Call*")
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Countif question

In article ,
"Patrick C. Simonds" wrote:

I need to be able to check the range D19:AB19 for any occurrence of the
phrase On Call. That is easy enough with the formula below so my problem is
it could be entered as just On Call or On Call #1 or On Call #4 ect.

So what I need is something that will count the occurance of On Call or any
phrase containing On Call.

=COUNTIF(D19:AB19,"On Call")



If 'On Call' occurs at the beginning of the text string, try...

=COUNTIF(D19:AB19,"On Call*")

or

=COUNTIF(D19:AB19,A2&"*")

....where A2 contains 'On Call'. If 'On Call' can occur anywhere within
the text string, try...

=COUNTIF(D19:AB19,"*On Call*")

or

=COUNTIF(D19:AB19,"*"&A2&"*")

....where, again, A2 contains 'On Call'.

--
Domenic
http://www.xl-central.com
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 question Marline Excel Discussion (Misc queries) 2 October 11th 07 09:59 PM
COUNTIF question Cowtoon Excel Worksheet Functions 7 January 5th 07 10:40 AM
CountIF Question guile Excel Worksheet Functions 1 January 26th 06 02:43 AM
Countif question Jim Excel Worksheet Functions 1 December 15th 05 12:32 PM
COUNTIF Question zbert Excel Worksheet Functions 2 October 31st 04 05:14 PM


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