ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to tell COUNTIF to not count a few characters (https://www.excelbanter.com/excel-worksheet-functions/265258-how-tell-countif-not-count-few-characters.html)

Rafa

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!

Roger Govier[_8_]

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




Jackpot

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!



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com