[TABLE="width: 500"]
<tbody>[TR]
[TD]1[TABLE="width: 642"]
<tbody>[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] 1st time
[/TD]
[TD="width: 76"] Batch 2
[/TD]
[TD="width: 91"] 2nd Time
[/TD]
[TD="width: 80"] Hour
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 0.75hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 1.23 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 1.18 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 1.43hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 0.13hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 0.03hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"] 1.83 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160"]
[/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"] [/TD]
[TD="width: 91, bgcolor: transparent"] [/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"] [/TD]
[TD="width: 69"] [/TD]
[TD="width: 76"] [/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 869, bgcolor: transparent, colspan: 10"] Base on Column E (2nd Time, will search for Column B (batch 1) which is Blank Only, if the Hour is different less than 2.0 Hours (1st time - 2nd Time)
[/TD]
[/TR]
[TR]
[TD="width: 318, bgcolor: transparent, colspan: 4"] Then allocate Batch 2 Number to Batch 1 Number
[/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 854, bgcolor: transparent, colspan: 9"] for Example 1st record , 6:54am - 6:09am = 0.75 Hours (meet the criteria), then Assign batch 2 number BB100 to Batch 1 (blank cell) B8 in red
[/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 869, bgcolor: transparent, colspan: 10"] Subsequent for Example 2nd record , 7:29am - 6:15am = 1.23 Hours (meet the criteria), then Assign batch 2 number BB101 to Batch 1 (blank cell) B10 in red
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 854, bgcolor: transparent, colspan: 9"] As for Row 6 and 5 , no record found to allocate as all batch 1 record is fully allocated (1st come 1 serve base on 2nd time )
[/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]1[TABLE="width: 642"]
<tbody>[TR]
[TD="width: 97"]
Date
[TD="width: 69"]
Batch 1
[TD="width: 76"] 1st time
[/TD]
[TD="width: 76"] Batch 2
[/TD]
[TD="width: 91"] 2nd Time
[/TD]
[TD="width: 80"] Hour
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA103
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB100
[TD="width: 91, bgcolor: transparent"]
6:09 AM
[TD="width: 80, bgcolor: transparent"] 0.75hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA104
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB101
[TD="width: 91, bgcolor: transparent"]
6:15 AM
[TD="width: 80, bgcolor: transparent"] 1.23 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA107
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB102
[TD="width: 91, bgcolor: transparent"]
6:25 AM
[TD="width: 80, bgcolor: transparent"] 1.18 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA106
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB103
[TD="width: 91, bgcolor: transparent"]
6:31 AM
[TD="width: 80, bgcolor: transparent"] 1.43hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA106
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB104
[TD="width: 91, bgcolor: transparent"]
6:46 AM
[TD="width: 80, bgcolor: transparent"] 0.13hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA105
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB105
[TD="width: 91, bgcolor: transparent"]
6:52 AM
[TD="width: 80, bgcolor: transparent"] 0.03hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
BB100
[TD="width: 76"]
6:54 AM
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA102
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB106
[TD="width: 91, bgcolor: transparent"]
7:09 AM
[TD="width: 80, bgcolor: transparent"] 1.83 hrs
[/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
BB101
[TD="width: 76"]
7:29 AM
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
[TD="width: 76"]
7:36 AM
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA110
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB107
[TD="width: 91, bgcolor: transparent"]
7:37 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA100
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB108
[TD="width: 91, bgcolor: transparent"]
7:45 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA101
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB109
[TD="width: 91, bgcolor: transparent"]
7:51 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
[TD="width: 76"]
7:57 AM
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA101
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB110
[TD="width: 91, bgcolor: transparent"]
7:58 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA103
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB111
[TD="width: 91, bgcolor: transparent"]
8:05 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160"]
[/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA107
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB112
[TD="width: 91, bgcolor: transparent"]
8:19 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA106
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB113
[TD="width: 91, bgcolor: transparent"]
8:27 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
AA106
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76"]
BB114
[TD="width: 91, bgcolor: transparent"]
8:51 AM
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97"]
28/01/2019
[TD="width: 69"]
[TD="width: 76"]
8:59 AM
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 2, bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="width: 869, bgcolor: transparent, colspan: 10"] Base on Column E (2nd Time, will search for Column B (batch 1) which is Blank Only, if the Hour is different less than 2.0 Hours (1st time - 2nd Time)
[/TD]
[/TR]
[TR]
[TD="width: 318, bgcolor: transparent, colspan: 4"] Then allocate Batch 2 Number to Batch 1 Number
[/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 854, bgcolor: transparent, colspan: 9"] for Example 1st record , 6:54am - 6:09am = 0.75 Hours (meet the criteria), then Assign batch 2 number BB100 to Batch 1 (blank cell) B8 in red
[/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 869, bgcolor: transparent, colspan: 10"] Subsequent for Example 2nd record , 7:29am - 6:15am = 1.23 Hours (meet the criteria), then Assign batch 2 number BB101 to Batch 1 (blank cell) B10 in red
[/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 854, bgcolor: transparent, colspan: 9"] As for Row 6 and 5 , no record found to allocate as all batch 1 record is fully allocated (1st come 1 serve base on 2nd time )
[/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="width: 97, bgcolor: transparent"][/TD]
[TD="width: 69, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 76, bgcolor: transparent"][/TD]
[TD="width: 91, bgcolor: transparent"][/TD]
[TD="width: 80, bgcolor: transparent"][/TD]
[TD="width: 139, bgcolor: transparent"][/TD]
[TD="width: 160, bgcolor: transparent"][/TD]
[TD="width: 66, bgcolor: transparent"][/TD]
[TD="width: 15, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]