+ Reply to Thread
Results 1 to 2 of 2

Roster staff drop down list who meet criteria for shift

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Scotland
    MS-Off Ver
    10
    Posts
    37

    Question Roster staff drop down list who meet criteria for shift

    Hi

    I am trying to create a roster sheet which will make it easier to select staff from a drop down list

    'Vehicles' and 'Routes' are selected from the drop down list made from named ranges in 'Data' sheet

    'Required' is then populated from the vehicle selected in Column B

    When selecting the staff they must have competency of the vehicle and have the route knowledge to the appear in a drop down list in column K

    Does anyone know a way I could achieve this? Whether it is using formulas or vba

    Or if you know any web pages that could help can you please link below?

    I have attached a sample of the workbook

    Thanks
    Megan
    Attached Files Attached Files
    Last edited by Justmegan93; 12-06-2016 at 06:12 AM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Roster staff drop down list who meet criteria for shift

    I have to imagine that there's a more straightforward solution than what I came up with, but I started building and ended up with something that works, so here it is. I created a table on your data sheet that indicates whether each driver is qualified for the listed jobs. The table makes use of the formula below entered into N8, then filled down, then filled right as far as you need (I filled through up to 10 jobs in the attachment):

    =COUNTIFS($G$8:$G$66,INDEX(Roster!$B$2:$B$21,MATCH(Data!N$7,Roster!$A$2:$A$21,0)),$H$8:$H$66,$M8)*COUNTIFS($J$8:$J$111,INDEX(Roster!$I$2:$I$21,MATCH(Data!N$7,Roster!$A$2:$A$21,0)),$K$8:$K$111,$M8)

    Below the table, I use the following formula to translate the results into names - these will be the drivers qualified for the jobs as listed on the first sheet. This formula should be array-entered (with Ctrl + Shift + Enter instead of Enter) into N16, then filled down and right as far as needed.

    =IFERROR(INDEX($M$8:$M$14,SMALL(IF(N$8:N$14=1,ROW(N$8:N$14)),ROW(1:1))-7),"")

    You can then create a named range that I called 'Qualified' using the following formula:

    =OFFSET(Data!$N$16,0,CEILING((ROW()-1)/4,1)-1,COUNTIF(OFFSET(Data!$N$8,0,CEILING((ROW()-1)/4,1)-1,8,1),1),1)

    This named range can be used on the first sheet (Roster) for your data validation. It should return only the options that fit the job's selected vehicle and route. Everything should update automatically as you change the vehicle and route entries on the first sheet. It seems to work for me, but give the attachment a try and see if does the trick for you.
    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. Make a list of names from a roster that meet a certain criteria
    By robertwclark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 02:09 AM
  2. Replies: 3
    Last Post: 06-26-2014, 12:13 AM
  3. How to create a staff roster....how far can I go
    By Rogeo in forum Excel General
    Replies: 6
    Last Post: 01-11-2014, 04:36 PM
  4. [SOLVED] Staff Roster
    By BlueHuman in forum Excel General
    Replies: 3
    Last Post: 03-28-2012, 05:09 AM
  5. Replies: 3
    Last Post: 03-18-2011, 07:48 AM
  6. Roster / Staff Allocation
    By KingAaron in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-13-2006, 09:40 PM
  7. [SOLVED] I need a simple staff roster
    By Delma McDonald in forum Excel General
    Replies: 3
    Last Post: 03-09-2006, 03:55 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