Cheryl Smith
New Member
Scenario:
I have 10 employees and 5 holidays for which I must staff 5 employees. To determine which 5, I first need to see which of the 10 employees volunteered to work. Next, once I have the volunteers, I must determine who is least senior of the 10, they will be mandatoried. So, volunteers then least senior will make up my 5 employees. Oh and the "kicker"<<think of it as the hot sauce>>, the least senior employee(s) who works a holiday cannot work the next holiday (unless they volunteer). (Spicy, right)
I was thinking I could push a button and have a macro perform the determination for the 5 employees each holiday.
Im having trouble with the logic.
Ex parameters:
Emp#: 1-10
Emp Name: John, jake <<whoever
Emp Senior Date: 1/2/1980-12/16/2005 ( pick arbitrary dates for each employee in this range)
Volunteer: Y or N
If less senior then employee is mandatoried.
My thinking (logically, of course):
Take Emp#1, did they volunteer to work(Y or N)
If Y then schedule,
If N then is their senior date <= 12/16/2005 and > 1/2/1980, if Y then schedule,
If N then no schedule
This is performed on all 10 employees. There should be 9 names listed for scheduling. Right??
Ok, so if this is correct, how can I rotate the least senior employees who were mandated to work the previous holiday?
Ex: Emp #4 was mandated to work MLK, they may not have to work PD.
Is this wayyyyy too ambitious, especially for a macro?
I have 10 employees and 5 holidays for which I must staff 5 employees. To determine which 5, I first need to see which of the 10 employees volunteered to work. Next, once I have the volunteers, I must determine who is least senior of the 10, they will be mandatoried. So, volunteers then least senior will make up my 5 employees. Oh and the "kicker"<<think of it as the hot sauce>>, the least senior employee(s) who works a holiday cannot work the next holiday (unless they volunteer). (Spicy, right)
I was thinking I could push a button and have a macro perform the determination for the 5 employees each holiday.
Im having trouble with the logic.
Ex parameters:
Emp#: 1-10
Emp Name: John, jake <<whoever
Emp Senior Date: 1/2/1980-12/16/2005 ( pick arbitrary dates for each employee in this range)
Volunteer: Y or N
If less senior then employee is mandatoried.
My thinking (logically, of course):
Take Emp#1, did they volunteer to work(Y or N)
If Y then schedule,
If N then is their senior date <= 12/16/2005 and > 1/2/1980, if Y then schedule,
If N then no schedule
This is performed on all 10 employees. There should be 9 names listed for scheduling. Right??
Ok, so if this is correct, how can I rotate the least senior employees who were mandated to work the previous holiday?
Ex: Emp #4 was mandated to work MLK, they may not have to work PD.
Is this wayyyyy too ambitious, especially for a macro?
Last edited: