Dear All,
I want to find out a time which is greater than a time and less than another time. Please see the below data:
[TABLE="width: 273"]
<tbody>[TR]
[TD]Date & Time[/TD]
[TD]Transaction Type[/TD]
[/TR]
[TR]
[TD]03/01/16 8:38:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]03/01/16 18:36:02[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]04/01/16 8:12:28[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]04/01/16 17:23:44[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]06/01/16 8:14:30[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]06/01/16 19:17:40[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]07/01/16 8:14:24[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]07/01/16 18:13:54[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]08/01/16 10:02:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]08/01/16 14:50:34[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]10/01/16 8:22:12[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]10/01/16 19:51:24[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]11/01/16 8:22:56[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]11/01/16 17:23:26[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]12/01/16 8:07:42[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]12/01/16 21:38:04[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]13/01/16 8:02:40[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]13/01/16 18:20:44[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]14/01/16 8:03:46[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 8:06:18[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 16:23:14[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]17/01/16 16:27:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 18:55:54[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]18/01/16 8:03:42[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]18/01/16 16:15:34[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]19/01/16 7:58:48[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]19/01/16 18:17:46[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]20/01/16 12:58:06[/TD]
[TD]I[/TD]
[/TR]
</tbody>[/TABLE]
Here, I stands for IN and O for OUT. I need to find next 'OUT time' after 'IN time' - 04/01/16 8:12:28 and before next 'In Time'- 06/01/16 8:14:30. The result will be 04/01/16 17:23:44.
Thanks in advance. - Jamshad
I want to find out a time which is greater than a time and less than another time. Please see the below data:
[TABLE="width: 273"]
<tbody>[TR]
[TD]Date & Time[/TD]
[TD]Transaction Type[/TD]
[/TR]
[TR]
[TD]03/01/16 8:38:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]03/01/16 18:36:02[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]04/01/16 8:12:28[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]04/01/16 17:23:44[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]06/01/16 8:14:30[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]06/01/16 19:17:40[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]07/01/16 8:14:24[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]07/01/16 18:13:54[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]08/01/16 10:02:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]08/01/16 14:50:34[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]10/01/16 8:22:12[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]10/01/16 19:51:24[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]11/01/16 8:22:56[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]11/01/16 17:23:26[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]12/01/16 8:07:42[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]12/01/16 21:38:04[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]13/01/16 8:02:40[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]13/01/16 18:20:44[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]14/01/16 8:03:46[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 8:06:18[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 16:23:14[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]17/01/16 16:27:36[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]17/01/16 18:55:54[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]18/01/16 8:03:42[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]18/01/16 16:15:34[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]19/01/16 7:58:48[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]19/01/16 18:17:46[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]20/01/16 12:58:06[/TD]
[TD]I[/TD]
[/TR]
</tbody>[/TABLE]
Here, I stands for IN and O for OUT. I need to find next 'OUT time' after 'IN time' - 04/01/16 8:12:28 and before next 'In Time'- 06/01/16 8:14:30. The result will be 04/01/16 17:23:44.
Thanks in advance. - Jamshad