+ Reply to Thread
Results 1 to 4 of 4

Random array of staff on duty with conditions based on weekday presence

  1. #1
    Registered User
    Join Date
    11-08-2023
    Location
    US
    MS-Off Ver
    365
    Posts
    4

    Random array of staff on duty with conditions based on weekday presence

    Hello,

    I am trying to create a random array based on a list of staff names to be on duty on a rotational basis. Duty days should be equally distributed throughout the year, but (here is the issue) the list should also consider the days of the week each staff is present at the office. For instance, if John works in presence on Tuesdays and Friday, he cannot be on duty on Mondays, etc...

    I managed to create the list, using RANDARRAY, TOCOL, EXPAND, FILTER and other dynamic array functions, but I need help in figuring out how to consider the weekday presence factor. Any hint, really appreciated.

    Test file here.

    TestOfficeCoverageNov2023.xlsx

    Thanks,

    F.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Random array of staff on duty with conditions based on weekday presence

    One way:

    Please try in O5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in P5:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 11-08-2023 at 05:56 PM.

  3. #3
    Registered User
    Join Date
    11-08-2023
    Location
    US
    MS-Off Ver
    365
    Posts
    4

    Re: Random array of staff on duty with conditions based on weekday presence

    Thank you so much, it seems to work perfectly. Very advanced stuff (to me at least). I will study it carefully as I am sure I will learn a lot from it.
    F.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Random array of staff on duty with conditions based on weekday presence

    You are Welcome!

    Thanks for the feedback and rep . Glad to have helped.

    If there any questions left don't hesistate to aske these questions here.

+ 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. [SOLVED] Generating random array with conditions
    By kohno71 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2022, 09:17 AM
  2. Creating a duty rota for 20+ staff spanning a year calendar
    By Jacbee58 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2020, 11:11 PM
  3. Random Name picker based on 2 conditions
    By rachrob in forum Excel General
    Replies: 3
    Last Post: 07-03-2019, 07:24 AM
  4. [SOLVED] Lookup in array based on weekday
    By bevc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2017, 07:45 AM
  5. [SOLVED] how do I get my staff rota to add number of staff on duty
    By dougers1 in forum Excel General
    Replies: 2
    Last Post: 07-20-2017, 05:18 AM
  6. Random number based on other cell conditions
    By Allen_dulles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2016, 09:20 AM
  7. [SOLVED] Count the number of staff working between times based on staff position
    By sparky1978 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2016, 08:10 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