+ Reply to Thread
Results 1 to 4 of 4

Exceptions to =Countblank function

  1. #1
    Registered User
    Join Date
    03-24-2006
    Posts
    1

    Exceptions to =Countblank function

    Hello..I am creating a worksheet for the work schedule for X number of employees. I have the worksheet arranged so that if someone has a day off a value of "o" is inserted into a calender type schedule. I then use a =countblank function to add up the blank spaces (which indicate someone is working) and can then see how many people are working a particular day.

    The problem I am having is that some time an employee will have a training day which instead of being a blank space will eb marked as (TRN). This however causes errors with my =countblank function, and the employees are then counted as being off when they are in fact training.

    Basically I want to use a =countblank function then put an exception modifier at the end so that days marked "trn" or other designations are counted by the function. I am not too familiar with doing these types of functions. I've thought of using a =countif function to include in the same path...any way just looking for the best way to do this.

    So far what I've come up with is:
    =countblank(cell:cell)+Countif(cell:cell,"trn")+Countif(however many variables i have)
    Is this the best way to do this?

    Thanks in advance
    Last edited by JackBall; 03-24-2006 at 10:02 AM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    That is how I would do it based on your model.
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    06-16-2005
    Posts
    68

    counting

    If I understand you correctly, you really are trying to include everything except those with a 'o'. Couldn't you just use a countif to find the number of 'o' and then subtract this from the total?

  4. #4
    Gerry-W
    Guest

    Re: Exceptions to =Countblank function


    Use the countif formula

    =countif(range,"put less than and greater than signs here"&"o")

    This will tell you how many cells do not contain a "o". ('<' '>')


    --
    Gerry-W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1