Self Populating Rota

davep88

New Member
Joined
Aug 24, 2016
Messages
1
I am attempting to create a rota, for weekday and weekend duties. I would like it to self populate based on two lists of names. The following rules need to apply;
- Mon-Thurs - to automatically populate from the Senior and Junior Staff lists
- Mon-Thurs - the on-call person must alternate between a Senior and a Junior (i.e. Mon = Senior, Tues = Junior, Wed = Senior etc)
- Mon-Thurs - the Late Rota person must alternate between a Senior and a Junior (i.e. Mon = Senior, Tues = Junior, Wed = Senior etc) so that there is always a Junior and a Senior work on each day
- Each member of the Senior team needs to work the same frequency of Mon-Thurs as the rest of the Seniors. i.e. 1 in 15 weekdays
- Each member of the Junior team needs to work the same frequency of Mon-Thurs as the rest of the Juniors. i.e. 1 in 17 weekdays

- Friday - The same rules apply as above, but as the people who work on Friday are also expected to work the weekend, this rota needs to populate separately, so that all Seniors do Fridays with the same frequency as other Seniors i.e. do a 1 in 15 weekends (same for the Juniors i.e do 1 in 17 weekends)

Below I have pasted a copy of an example table in which I would like to populate the names from the right.
Thank you for your help in advance

Excel 2016 (Mac) 32 bit


A
B
C
D
E
F
G
H
I
J
K
L
1
Week beginning​
Duty​
Mon (a)​
Tue (b)​
Wed ( c)​
Thu (d)​
Fri & Weekend​
2
05/09/2016​
Late duty
SeniorsJuniors
3
Oncall​
CaraChris
4
05/09/2016​
Late duty
DaveDonald
5
Oncall​
EuanEve
6
05/09/2016​
Late duty
FreddyFiona
7
Oncall​
GeorgeGreg
8
05/09/2016​
Late duty
HannahHarry
9
Oncall​
IainIndia
10
05/09/2016​
Late duty
JerryJosh
11
Oncall​
KerryKristina
12
05/09/2016​
Late duty
LiamLucas
13
Oncall​
MollyMarty
14
05/09/2016​
Late duty
NickNaomi
15
Oncall​
OliviaOscar
16
05/09/2016​
Late duty
Peter
17
Oncall​
Quentin
18
05/09/2016​
Late duty
19
Oncall​

<tbody>
</tbody>
Sheet: Sheet1

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Paste this formula into what will be d3 after you make the below modifications =INDEX($J:$K,IFERROR(MATCH($C3+D$2-IF(AND(MOD($C3+D$2,2)=1,$C3+D$2<52),26,IF(AND(MOD($C3+D$2,2)=1,$C3+D$2<78),52,IF(AND(MOD($C3+D$2,2)=1,$C3+D$2<90),78,IF(AND(MOD($C3+D$2,2)=0,$C3+D$2<61),30,60)))),$J:$J,0),MATCH($C3+D$2,$J:$J,0)),2)
I added a helper row between rows 1 and 2. Once the new row is created I typed 1 in c2, 2 in d2, 3 in e2, 4 in f2, and 5 in h2. I also added a helper column between b and c and typed the values 0 in c2, 5 in c3, 10 in c4 (continue in increments of 5). I numbered the seniors odds starting at 1 and going to 25. I moved the Juniors beneath the Seniors in column K and gave them even numbers 2 through 30. Kind of a mess but seems to work.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top