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  

How to tell COUNTIF to not count a few characters



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2010, 04:29 PM posted to microsoft.public.excel.worksheet.functions
rafa
external usenet poster
 
Posts: 4
Default How to tell COUNTIF to not count a few characters

Im working on a colum that is a medical schedule for Doctor who will be
working that day so that I know how many exam rooms will be needed - right
now Im working with: =COUNTIF(F14:F43,"*") which tells me how many cells are
not blank. But I would like to have countif not count cells in that same
colum who have values like: OFF, ADMIN, OFF SITE and etc. Am I using the
correct function? PLEASE HELP!
  #2  
Old June 4th, 2010, 04:36 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default How to tell COUNTIF to not count a few characters

Hi Rafa

Countif is a very efficient function
=COUNTIF(F14:F43,"OFF*")
will deal with both Off and Off Site
=COUNTIF(F14:F43,"Admin")

Deduct these values from your other value to get the net figure.
--

Regards
Roger Govier

"Rafa" wrote in message
...
Im working on a colum that is a medical schedule for Doctor who will be
working that day so that I know how many exam rooms will be needed - right
now Im working with: =COUNTIF(F14:F43,"*") which tells me how many cells
are
not blank. But I would like to have countif not count cells in that same
colum who have values like: OFF, ADMIN, OFF SITE and etc. Am I using the
correct function? PLEASE HELP!

__________ Information from ESET Smart Security, version of virus
signature database 5172 (20100604) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 5172 (20100604) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #3  
Old June 4th, 2010, 04:40 PM posted to microsoft.public.excel.worksheet.functions
Jackpot
external usenet poster
 
Posts: 28
Default How to tell COUNTIF to not count a few characters

If you are looking for exact words in the cells then try
=SUM(COUNTIF(F14:F43,{"OFF","Admin","Off site"})

OR incase you are looking for text string within the entries then try the
below..You can ignore Off site since "Off" is already mentioned in the search
list

=SUM(COUNTIF(F14:F43,"*" & {"OFF","Admin"} & "*"))


"Rafa" wrote:

Im working on a colum that is a medical schedule for Doctor who will be
working that day so that I know how many exam rooms will be needed - right
now Im working with: =COUNTIF(F14:F43,"*") which tells me how many cells are
not blank. But I would like to have countif not count cells in that same
colum who have values like: OFF, ADMIN, OFF SITE and etc. Am I using the
correct function? PLEASE HELP!

 




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 10: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.