Post COVID branch rostering

ashoksoft

New Member
Joined
Jul 19, 2009
Messages
6
Dear team,

I am faced with a unique situation and would really seek help here.. I work with an organization that has about 5000 staff members, who are working out of 159 branches. Each branch has a different seating capacity - now some branches have traditionally had more employees than the seating capacity. The post lockdown norms enforce physical distancing - due to which we are allowed to have 50% staffing of the total seats in the branch.

The new norms have 3 shift codes - WFF (Work from Field), WFO (Work from office) and WFH (Work from home).. while there is no restriction to the number of people who can be on WFH / WFF, you can only have 50% of the available seat count allowed to WFO. Employees who are on WFH / WFF may have to come to the office anywhere between 1 to 5 days in a week.

Now to tackle this I have created 3 rows above the data detailing Date, Week No. and Day. The rule is that for each branch code there is a restriction on the number of seats available. The total number of employees on WFO cannot exceed the seating limit per day, and cannot exceed the number of days in office per week. (The image below is a overly simplified view of the process) .. WO stands for week off.

I tried to write a formula ignoring circular references - but could not get the randomization of the days in the week possible. attaching a copy of the dummy sheet I made here - any help will be deeply appreciated.



1592278043560.png


Book4
ABCDEFGHIJKLMN
1Day : MonTueWedThuFriSatSun
2Week No.25252525252525
3Date :15-Jun16-Jun17-Jun18-Jun19-Jun20-Jun21-Jun
4Emp. IdEmployee NameBranch CodeSeats AvailableEmployees rostered in the branchPrimary RoleDays in office
510000Emp 1AHM00324WFH1WFHWFHWFOWFHWFHWOWO
610001Emp 2AHM00324WFH2WFOWFHWFHWFHWFOWOWO
710002Emp 3AHM00324WFF3WFFWFOWFOWFOWFHWOWO
810003Emp 4AHM00324WFH3WFOWFOWFHWFOWFHWOWO
910004Emp 5AHM00434WFH1
1010005Emp 6AHM00434WFF3
1110006Emp 7AHM00434WFH2
1210007Emp 8AHM00434WFH2
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H5:N8Cell Value="WO"textNO
H5:N8Cell Value="WFF"textNO
H5:N8Cell Value="WFO"textNO
H5:N8Cell Value="WFH"textNO
 
Cool. Rather than mucking with the formula again, adding a "Saturdays?" column with Y or N as entries... lets pretend it is F2
and under your Calendar for Saturday,
=if(F2="Y","WFO"."OFF")
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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