I have included a small sample of what it is I am trying to accomplish. The 2 highlighted rows share the same operation start date and time so the cell (1002 in this case) is double scheduled. In this case, sequence 1 of each job should be schedule in subsequent order instead of at the same time. How do I do this? I can easily add a priority column to dictate what should be run first, but then I would need help with the formula or vba to execute the premise of what I am trying to accomplish.
[TABLE="width: 849"]
<tbody>[TR]
[TD="class: xl74, width: 85, bgcolor: #FFE699"]
Sequence
[/TD]
[TD="class: xl75, width: 96, bgcolor: #FFE699"]
Cell / Machine
[/TD]
[TD="class: xl74, width: 79, bgcolor: #FFE699"]
Setup Time
[/TD]
[TD="class: xl75, width: 70, bgcolor: #FFE699"]
Hourly Rate
[/TD]
[TD="class: xl75, width: 70, bgcolor: #FFE699"]
Hours Available Per Day
[/TD]
[TD="class: xl75, width: 60, bgcolor: #FFE699"]
Transfer Hours
[/TD]
[TD="class: xl75, width: 80, bgcolor: #FFE699"]
Remaining Hours
[/TD]
[TD="class: xl76, width: 113, bgcolor: #FCE4D6"]
Start of Working Hours
[/TD]
[TD="class: xl76, width: 113, bgcolor: #FCE4D6"]
End of WorkingHours
[/TD]
[TD="class: xl76, width: 127, bgcolor: #FCE4D6"]
Operation Start Date and Time
[/TD]
[TD="class: xl76, width: 124, bgcolor: #FCE4D6"]
Operation End Date and Time
[/TD]
[TD="class: xl76, width: 113, bgcolor: #FCE4D6"]
Days Operation is Early or Late (+ is late / - is early)
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #D9E1F2"]
1
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
1002
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
2
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
600
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
15.5
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
0
[/TD]
[TD="class: xl67, bgcolor: #D9E1F2"]
30.8
[/TD]
[TD="class: xl68, bgcolor: #D9E1F2"]
12:00 AM
[/TD]
[TD="class: xl68, bgcolor: #D9E1F2"]
11:59 PM
[/TD]
[TD="class: xl69, bgcolor: #D9E1F2"]
4/16/18 7:00 AM
[/TD]
[TD="class: xl69, bgcolor: #D9E1F2"]
4/17/18 10:18 PM
[/TD]
[TD="class: xl67, bgcolor: #D9E1F2"]
-12.4
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
2
[/TD]
[TD="class: xl72, bgcolor: transparent"]
M11
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
150
[/TD]
[TD="class: xl72, bgcolor: transparent"]
21.6
[/TD]
[TD="class: xl72, bgcolor: transparent"]
8
[/TD]
[TD="class: xl65, bgcolor: transparent"]
131.7
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/16/18 3:53 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/24/18 5:59 PM
[/TD]
[TD="class: xl65, bgcolor: transparent"]
-5.5
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
3
[/TD]
[TD="class: xl72, bgcolor: transparent"]
5003 - Furnace
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0
[/TD]
[TD="class: xl72, bgcolor: transparent"]
600
[/TD]
[TD="class: xl72, bgcolor: transparent"]
22.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0
[/TD]
[TD="class: xl65, bgcolor: transparent"]
28.8
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/25/18 5:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/27/18 12:18 AM
[/TD]
[TD="class: xl65, bgcolor: transparent"]
-3.3
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
4
[/TD]
[TD="class: xl72, bgcolor: transparent"]
6069
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
150
[/TD]
[TD="class: xl72, bgcolor: transparent"]
18
[/TD]
[TD="class: xl72, bgcolor: transparent"]
4
[/TD]
[TD="class: xl65, bgcolor: transparent"]
123.7
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/25/18 11:19 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
5/4/18 3:02 PM
[/TD]
[TD="class: xl65"]4.3
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #D9E1F2"]
1
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
1002
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
2
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
600
[/TD]
[TD="class: xl71, bgcolor: #D9E1F2"]
15.5
[/TD]
[TD="class: xl66, bgcolor: #D9E1F2"]
0
[/TD]
[TD="class: xl71, bgcolor: #D9E1F2"]
23.0
[/TD]
[TD="class: xl68, bgcolor: #D9E1F2"]
11:00 PM
[/TD]
[TD="class: xl68, bgcolor: #D9E1F2"]
3:30 PM
[/TD]
[TD="class: xl69, bgcolor: #D9E1F2"]
4/16/18 7:00 AM
[/TD]
[TD="class: xl69, bgcolor: #D9E1F2"]
4/17/18 2:30 PM
[/TD]
[TD="class: xl67, bgcolor: #D9E1F2"]
-12.7
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
2
[/TD]
[TD="class: xl72, bgcolor: transparent"]
M12
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
150
[/TD]
[TD="class: xl73, bgcolor: transparent"]
18.0
[/TD]
[TD="class: xl72, bgcolor: transparent"]
4
[/TD]
[TD="class: xl73, bgcolor: transparent"]
84.5
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/16/18 12:20 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/23/18 12:51 AM
[/TD]
[TD="class: xl65, bgcolor: transparent"]
-7.3
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
3
[/TD]
[TD="class: xl72, bgcolor: transparent"]
5003 - Furnace
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0
[/TD]
[TD="class: xl72, bgcolor: transparent"]
600
[/TD]
[TD="class: xl73, bgcolor: transparent"]
22.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0
[/TD]
[TD="class: xl73, bgcolor: transparent"]
21.0
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/24/18 12:51 AM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/24/18 9:51 PM
[/TD]
[TD="class: xl65, bgcolor: transparent"]
-5.4
[/TD]
[/TR]
[TR]
[TD="class: xl72, bgcolor: transparent"]
4
[/TD]
[TD="class: xl72, bgcolor: transparent"]
6072
[/TD]
[TD="class: xl72, bgcolor: transparent"]
0.5
[/TD]
[TD="class: xl72, bgcolor: transparent"]
150
[/TD]
[TD="class: xl73, bgcolor: transparent"]
18.0
[/TD]
[TD="class: xl72, bgcolor: transparent"]
4
[/TD]
[TD="class: xl73, bgcolor: transparent"]
84.5
[/TD]
[TD="class: xl70, bgcolor: transparent"]
12:00 AM
[/TD]
[TD="class: xl70, bgcolor: transparent"]
11:59 PM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/24/18 6:11 AM
[/TD]
[TD="class: xl64, bgcolor: transparent"]
4/30/18 6:41 PM
[/TD]
[TD="class: xl65"]0.5
[/TD]
[/TR]
</tbody>[/TABLE]
Thank you
A priority column may just be the easiest to work with, especially if two different parts have the same start date and end up needing the same machine at the same time. Otherwise, I would like to see the sheet or a sample of it to better understand what you really have.