Randomly select names from a list and multiple criteria

QIBusinessGroup

New Member
Joined
Jan 23, 2011
Messages
5
Hello All,

I have an issue I have been trying to work on all week. Here is my issue
I need to randomly select work for 12 different agent based on a list of 4 jobs.

The work has to be spread out (i.e. 4 agent doing Task 1, 4 doing Task 2...etc)
this also includes the weekend when staffing is only 3 on Saturday and sunday. also the list has to look at the agents schedule to assign a task. Example we can have all of the 9am-6pm agents doing task on b/c after 6pm there will not be anyone left to do that work. the list changes when a new month is selected. task 1-4 will be on a hidden tab with the dates.

I hope i did not confuse anyone. example is below Thank you in advance for any assistance you are able to provide. Please feel free to email me if you have any question. What I am looking for is some suggestion and formulas on which way to go. I have tried the randbetween however it does not spread the work/list out even. Is there any way i can fine tune that function?

Nate
QIBusinessGroup


Agent Name Saturday Sunday Monday Tuesday Wednesday Thursday Friday
Agent 1 Off 2:00 - 6:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 Off
Agent 2 Off 2:00 - 6:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 Off
Agent 3 Off Off 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00
Agent 4 Off Off 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00
Agent 5 10:00 - 7:00 Off 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00 9:00 - 6:00
Agent 6 Off 2:00 - 6:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 9:00 - 7:00 Off
Agent 7 Off Off 12:30 - 9:30 12:30 - 9:30 12:30 - 9:30 12:30 - 9:30 12:30 - 9:30
Agent 8 Off Off 11:30 - 8:30 11:30 - 8:30 11:30 - 8:30 11:30 - 8:30 11:30 - 8:30
Agent 9 Off Off 11:00 - 8:00 11:00 - 8:00 11:00 - 8:00 11:00 - 8:00 11:00 - 8:00
Agent 10 10:00 - 7:00 Off 10:00 - 9:00 10:00 - 9:00 Off Off 10:00 - 9:00
Agent 11 10:00 - 7:00 Off Off 10:00 - 7:00 10:00 - 7:00 10:00 - 7:00 10:00 - 7:00
Agent 12 Off Off 1:15 - 10:15 1:15 - 10:15 1:15 - 10:15 1:15 - 10:15 1:15 - 10:15


Select A Month
May 5


Agent Name 5/7 - 5/13 5/14 - 5/20 5/21 - 5/27 5/28 - 6/3
Agent 1 Task1 1 4
Agent 2 2 3
Agent 3 3 1
Agent 4 Task 3 4 2
Agent 5 1 3
Agent 6 2 2
Agent 7 3 1
Agent 8 Task 2 4 4
Agent 9 1 2
Agent 10 2 1
Agent 11 3 3
Agent 12 4 4
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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