+ Reply to Thread
Results 1 to 6 of 6

Prioritising countif statements

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Question Prioritising countif statements

    Hi All,

    This is a little long winded but please bear with me.

    I have a roster I have developed, but for simplicity reasons, and the need to take away Human Error I am trying to have this roster show when there is a coverage issue across 1 of the 3 departments (Prod, D&B, Survey). I currently have countifs which determine if there is less than 3 personnel on site or if there is no one able to provide coverage for one or more of the departments on any given day. See the spreadsheet below;

    Roster Problem.xlsx

    While this works well for days 7 and 8, for example, Day 12 should also return a "CHK" Message. Whilst there is 3 personnel on site and there is someone that can cover each of the departments, it is in fact the same person (Tim) who is able to perform both Prod and Survey Duties. However, 1 person can only perform one duty and thus he should be discounted from survey as he will be required to perform the prod role.

    So my question is, how can I adjust this formula to take into account situations such as Day 12, where there will be no coverage for either the prod or survey roles?

    Thanks for your help in advance,

    Cheers,

    Spicey

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Prioritising countif statements

    How to know who is working on which DAY?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Prioritising countif statements

    The question is how to adjust the formula I have to take into account that one person can only perform one job? So take day 12 for example, Tim is competent in performing both Prod and Survey jobs but he can only do one. SO, If he does Prod, then there is no one to do Survey, or, if he does Survey, there is no one to do Prod, even though there are another 2 people at work. (Those two people can only perform D&B work).

    I want my Coverage Check formula to take these situations into consideration. At the moment it says OK for day 12 but as I have explained, There will not be enough people available. I suspect it might require a Macro, or multiple IF statements, I am not sure.

    Cheers

  4. #4
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Prioritising countif statements

    Looks like you need a macro with a loop that would first assign people that can cover only one department and then those who can cover more than one. Still thinking if the same can be achieved with several formulas but macro would seem to be your best bet.

  5. #5
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Prioritising countif statements

    Ok I was thinking/fearing that would be the case. I'm still trying to work out a way of using formulas, but coming to a dead end. I would like to avoid the use of a macro if possible.

  6. #6
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Prioritising countif statements

    This is a very ugly attempt at what you need but should do the trick. The line that you should be looking at is row 45.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Prioritising a list
    By pauldaddyadams in forum Excel General
    Replies: 15
    Last Post: 09-30-2014, 11:54 AM
  2. Help with COUNTIF Statements
    By vanurdi010310 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-15-2013, 02:51 PM
  3. auto sort calendar, prioritising visits v time off
    By Mr CheeZe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-27-2009, 02:31 PM
  4. Prioritising Values - returning the top 3 numbers
    By Kolacube in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2008, 02:23 AM
  5. [SOLVED] Prioritising on dates
    By BOB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2005, 09:06 AM

Tags for this Thread

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