A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Countif question



 
 
Thread Tools Display Modes
  #1  
Old May 16th, 2009, 09:25 PM posted to microsoft.public.excel.worksheet.functions
Patrick C. Simonds
external usenet poster
 
Posts: 53
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  
Old May 16th, 2009, 09:33 PM posted to microsoft.public.excel.worksheet.functions
Per Jessen
external usenet poster
 
Posts: 686
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  
Old May 16th, 2009, 09:34 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme[_2_]
external usenet poster
 
Posts: 1,027
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  
Old May 16th, 2009, 09:35 PM posted to microsoft.public.excel.worksheet.functions
pub
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  
Old May 16th, 2009, 09:36 PM posted to microsoft.public.excel.worksheet.functions
Domenic[_2_]
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.