+ Reply to Thread
Results 1 to 13 of 13

Automatic Daily Roster of Medical Team

  1. #1
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Question Automatic Daily Roster of Medical Team

    Hello, Am new to excel. i am looking for a way to automate the shift rotation for the 14 Registrars in the attached file on a monthly basis.
    I don't know if there is an excel Macro to automatically generate 2 people per day (A&E , Ward).
    For weekends, same people on Saturday also covers Sunday.
    Need the Shift shared equally.
    Thank you

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,850

    Re: Automatic Daily Roster of Medical Team

    Hello nifecafe and Welcome to Excel Forum.
    This proposal employs four helper columns which may be moved and/or hidden for aesthetic purposes.
    AH7:AH20 are populated with the numbers 1:14
    Column AK is populated with dates.
    Column AL displays the A&E assignments and is populated using: =IF(WEEKDAY(AK7,1)=1,AL6,IF(MOD(SUM(AL6,3),14)=0,14,MOD(SUM(AL6,3),14)))
    Column AM diplays the ward assignments and is populated using: =IF(WEEKDAY(AK7,1)=1,AM6,IF(MOD(SUM(AL7,1),14)=0,14,MOD(SUM(AL7,1),14)))
    The formula that populates the Monthly Shift Rotation schedule is: =IFERROR(INDEX($AL$6:$AM$6,AGGREGATE(15,6,(COLUMN($AL$6:$AM$6)-COLUMN($AK$6))/($AL$7:$AM$68=$AH7)/($AK$7:$AK$68=C$5),1)),"")
    Note that row 5 is populated with dates instead of numbers.
    Note that AI7:AI20 are not needed but was left to show that overall the assignments will be shared equally as R1 and R14 will have the weekend shift May 2nd and 3rd.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    Thanks a lot JeteMc. Really appreciate your detailed feedback.
    What am trying to further achieve is to auto-populate the shift rotation table based on the available number of people per time.
    Take for instance, instead of the 14 people, we now have 9 people. And we want to equally share the work equally per weekdays and per weekends.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,850

    Re: Automatic Daily Roster of Medical Team

    Take a look at this and see if it will work.
    The modified formula for AL7 and down is: =IF(WEEKDAY(AK7,1)=1,AL6,IF(MOD(SUM(AL6,IF(ISEVEN(AL$4),3,2)),AL$4)=0,AL$4,MOD(SUM(AL6,IF(ISEVEN(AL$4),3,2)),AL$4)))
    The modified formula for AM7 and down is: =IF(WEEKDAY(AK7,1)=1,AM6,IF(MOD(SUM(AL7,1),AL$4)=0,AL$4,MOD(SUM(AL7,1),AL$4)))
    Change the value in cell AL4 to test.
    Let us know if you have any questions.
    Last edited by JeteMc; 04-08-2020 at 09:33 AM.

  5. #5
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    Wow! Brilliant. Thats the way i want it.
    But i noticed that the Staff 2 and 5 were not populated when inputted value 6 in cell AL4.
    Please help check.
    Thanks

  6. #6
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    In addition, help automate below functions as well:
    1. the SNR Registrars roster is shared equally among a given number n of available people. i.e the weekday is equally shared and the Weekends equally shared as well. Available people can be reduced or increased.

    2. the Consultants cells are populated based on the departments on Cells C4 to AG4. See attached breakdown.

    Thank you so much
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Automatic Daily Roster of Medical Team

    By "help automate", what do you mean? You seem be presenting this as a requirement. Presumably thee worksheet shows your attempt at doing it yourself?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    Hi AliGW,

    By automate mean, should be populated once the given details are provided and condition met.
    For instance, when the number of SNR Registrars is given as 3, the cells will re-adjust automatically by sharing the work schedule by Weekdays and Weekends.

    While Consultants cells will be populated using the given dept that will be manually provided.

    Thank you

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Automatic Daily Roster of Medical Team

    I was referring to the word "help" - it looks as if you want someone to do it for you. The idea is that we provide assistance with your attempts at implementing solutions to problems, not build entire solutions for you. We have the commercial services section (paid) if you wish to hire someone to create solution. If you wish to continue in thee free section, then you need to met your helpers halfway by showing that you have tried to adapt what you have already learnt from the thread. Have you done this?

  10. #10
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    Yes i get your point.
    If you wish to continue in thee free section, then you need to met your helpers halfway by showing that you have tried to adapt what you have already learnt from the thread. Have you done this? Yes i have. Will share same to meet my helper halfway.

    Thank you AliGW

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,850

    Re: Automatic Daily Roster of Medical Team

    In response to post #5:
    1. Please paste the following into cell AL7 and double click the fill handle to copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Please paste the following into cell AM7 and double click the fill handle to copy down: =IFERROR(1/(1/MOD(SUM(AL7,1),AL$4)),AL$4)
    Let us know if you have any questions.

  12. #12
    Registered User
    Join Date
    04-05-2020
    Location
    Lagos
    MS-Off Ver
    2010
    Posts
    7

    Re: Automatic Daily Roster of Medical Team

    Thanks JeteMC.
    Works very well now.
    You are the best!

    Thanks once again.
    Well appreciated.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,850

    Re: Automatic Daily Roster of Medical Team

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Team Roster Creation
    By ARGK in forum Excel General
    Replies: 1
    Last Post: 07-20-2018, 12:42 AM
  2. Replies: 4
    Last Post: 10-26-2016, 08:34 AM
  3. Replies: 5
    Last Post: 11-25-2015, 01:34 AM
  4. Roster moving names onto a daily allocation sheet
    By JamesNeedsRosterHelp in forum Excel General
    Replies: 4
    Last Post: 10-09-2014, 09:10 PM
  5. [SOLVED] Dependent Data Validation - Team Roster
    By ktwainscott in forum Excel General
    Replies: 7
    Last Post: 06-24-2012, 01:42 AM
  6. Rotating sport team roster
    By h0mbre in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-30-2012, 03:25 AM
  7. Populate a calendar using team roster data in excel
    By Patrick56 in forum Excel General
    Replies: 0
    Last Post: 06-10-2010, 10:29 PM

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