creating a list based on multiple criteria

RedOctoberKnight

Board Regular
Joined
Nov 16, 2015
Messages
153
Office Version
  1. 2016
Platform
  1. Windows
Hello,<o:p></o:p>
I’m currently working on a project. I’m trying tocreate a sheet that would create a separate list of employees based on multiple statuseswhen scheduling overtime.<o:p></o:p>
<o:p> </o:p>
My sheet is laid out as follows. OVERTIME NEED being in A1.<o:p></o:p>
[TABLE="class: MsoTableGrid"]
<tbody>[TR]
[TD="width: 115, bgcolor: transparent"] OVERTIME NEED<o:p></o:p>
[/TD]
[TD="width: 88, bgcolor: transparent"] AGENT<o:p></o:p>
[/TD]
[TD="width: 91, bgcolor: transparent"] HOURS<o:p></o:p>
[/TD]
[TD="width: 85, bgcolor: transparent"] STATUS<o:p></o:p>
[/TD]
[TD="width: 131, bgcolor: transparent"] HIRE DATE<o:p></o:p>
[/TD]
[TD="width: 115, bgcolor: transparent"] AWARD ORDER<o:p></o:p>
[/TD]
[/TR]
[TR]
[TD="width: 115, bgcolor: transparent"] 1300-1900<o:p></o:p>
[/TD]
[TD="width: 88, bgcolor: transparent"] WILLIAMS<o:p></o:p>
[/TD]
[TD="width: 91, bgcolor: transparent"] 0<o:p></o:p>
[/TD]
[TD="width: 85, bgcolor: transparent"] A<o:p></o:p>
[/TD]
[TD="width: 131, bgcolor: transparent"] 1/1/1990<o:p></o:p>
[/TD]
[TD="width: 115, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 115, bgcolor: transparent"][/TD]
[TD="width: 88, bgcolor: transparent"] TORRES<o:p></o:p>
[/TD]
[TD="width: 91, bgcolor: transparent"] 0<o:p></o:p>
[/TD]
[TD="width: 85, bgcolor: transparent"] C<o:p></o:p>
[/TD]
[TD="width: 131, bgcolor: transparent"] 2/5/1998<o:p></o:p>
[/TD]
[TD="width: 115, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 115, bgcolor: transparent"][/TD]
[TD="width: 88, bgcolor: transparent"] BUMP<o:p></o:p>
[/TD]
[TD="width: 91, bgcolor: transparent"] 1230-2100<o:p></o:p>
[/TD]
[TD="width: 85, bgcolor: transparent"] B<o:p></o:p>
[/TD]
[TD="width: 131, bgcolor: transparent"] 8/15/2008<o:p></o:p>
[/TD]
[TD="width: 115, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 115, bgcolor: transparent"][/TD]
[TD="width: 88, bgcolor: transparent"] KENNEDY<o:p></o:p>
[/TD]
[TD="width: 91, bgcolor: transparent"] 0415-1245<o:p></o:p>
[/TD]
[TD="width: 85, bgcolor: transparent"] B<o:p></o:p>
[/TD]
[TD="width: 131, bgcolor: transparent"] 10/16/2015<o:p></o:p>
[/TD]
[TD="width: 115, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
<o:p> </o:p>
I’m looking to make a list of the agents in the correct "award order" in column F thatwould be based on a few work rules.<o:p></o:p>
The first rule would be STATUS. Agents are different statusbased on their schedules. Status is followed alphabetically so “Williams” wouldbe 1st in line for overtime because he is “A” status. “Bump” and “Kennedy”would be 2nd and 3rd because they are “B” status and soon.<o:p></o:p>
The second rule would be based hire date. The agent who hasbeen with the company longer would be awarded overtime first and so on. <o:p></o:p>
The 3rd rule would be hours. This is where itprobably gets tricky. I want to be able to award overtime based on time. So if “Bump”is scheduled to work 1230-2100, and I have an overtime need of 1500-1900, shewould not be able to work it because she is already working. Where “Kennedy” isscheduled to work 0415-1245 and would be available to work the overtime need of1300-1900. Agents who have a “0” in the column are not scheduled to work thatday and can work any time.<o:p></o:p>
<o:p> </o:p>
So basically when I enter in an overtime need into A2, whenit goes to award the overtime order in column F, it would look up status first,then it would look up hire date, and then it would look up hours. (all the information in Columns B,C,D, & E would be imputed manually)
So with the current example,<o:p></o:p>
I need overtime hours from 1300-1900. “Williams” would beawarded to overtime because he is on “A” status.<o:p></o:p>
If I have multiple employees on “A” status, then it would beawarded based on Hire date.<o:p></o:p>
If I have multiple employees on “B” status (which for usbasically means you are already scheduled to work that day), it would look at theirscheduled hours and award based on if they are available to work the neededovertime shift.<o:p></o:p>
<o:p> </o:p>
It’s very possible that I’m in way over my head on thisproject but if somebody actually understands what I’m talking about and canfigure out a way to do it, that would be amazing.<o:p></o:p>
Thank you to everyone who contributes to these forums. Ihave learned so much from everyone already.<o:p></o:p>
Thanks.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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