Hey Excel community,
I have come accross a problem that I cannot overcome and I am wondering whether a macro is the only way to solve this problem. I hope not since I don't know much about macros.
I am trying to make an automatic job schedule with the following availability options from different persons:
excel picture1.PNG
I came this far as that I select all the ''yes'' options per date and pick a randomized person that is able to work on that date. To create some equality between the employees I want to 'force' the randbetween to atleast schedule a person once per two weeks and a maximum number of day parts which they can fill in themselves (see row 29). However the randbetween is not as simple as picking a number between 1 and the maximum number of every employee as you can see in the following image, because the other randbetween already has to figure out which random person has to work on a specific day. How can I restrict the randbetween in this formula so that the sum over these two weeks is between 1 and max amount chosen by employee? Someone knows how to adjust the formula?
excel picture2.PNG
Thankyou very much. Preciate it.
Bookmarks