I've been tasked with creating a tool which will find our most ideal schedule for available workforce.
My workbook attached workbook includes:
• ["Schedule"] sheet, wherein I can enter the number of employees STARTING at a given time of the day, rows at bottom reference how many employees are allowed that day and how many have been scheduled.
• ["Payroll Capacity"]A sheet showing how many workers payroll can allow per each day of the week
• ["Workload"] sheet shows amount of estimated work that will come in by hourly interval, and how long the average workpiece takes a worker to process(cell N5)
• ["Results"] references (based on each potential start time) how many employees would be in the facility at a given hourly interval. Columns on this sheet calculate (employees in facility/(workpieces*time to process each)
What I'm attempting:
I need to figure out a set of scripts and\or formulas that can find every possible combination of start times on the ["Schedule"] sheet(without the total employee count["Schedule"][row 31] surpassing the allowed amount ["Schedule"][row 33]), and find which combination of start times will yield the highest On Time % on the ["Results"] sheet for each day. I've come to terms with the fact that I may need to calculate this one day at a time, and that's fine. I just can't figure out how to best calculate this info.
I've included the workbook which contains sample data. I've tried a variety of permutation methods, even setting up tables and using a data reference that passes through Microsoft Query; but none of the methods I've found online actually work. Any time I write a script to calculate each possible combination(If I could just get a list of the possible combos, I could pretty easily run a script to validate the result of each combo, and then filter down to the top ten or twenty possibilities)... But Excel gives me errors indicating I don't have enough resources (I've researched apparently every possible fix known to man, and none of them seem to work -and I've got a pretty mean rig for this to run on, so resources shouldn't be an issue in my mind).
If anyone can take a look and perhaps steer me in the right direction to resolve this, I would be very grateful. For reference, my work machine runs Office Pro 2010, and my home machine is Office Pro 2013. Both give me resource errors when trying permutation methods. I've included my sample data workbook for ease of understanding.
Again, I REALLY appreciate any assistance on this... I'm not used to hitting a wall like this, usually a few quick google searches or small amount of forum perusing fixes any issue I'm having.
WidgetsAssistance.xlsm
Bookmarks