mboswell28
New Member
- Joined
- Oct 9, 2014
- Messages
- 8
I am looking for assistance with counting the frequency that TIMEOUT appears consecutively for each driver on each day. I'm looking for instances TIMEOUT appears 3 times consecutively for a driver on a given day. At that point I'd like to know the number of rows that appear after the 3rd consecutive TIMEOUT for that driver on that day. I've included that data table below.
For example Driver 1 on 9/19 had 3 consecutive TIMEOUT's and one row appeared after the 3rd TIMEOUT. Driver 2 on 9/23 had 3 consecutive TIMEOUTS's and there were two rows after the 3rd TIMEOUT. Any assistance is greatly appreciated.
[TABLE="width: 591"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TIMEOUT[/TD]
[/TR]
[TR]
[TD]OWNR_NAME[/TD]
[TD]DATE[/TD]
[TD]JOB STATUS[/TD]
[TD][/TD]
[TD][/TD]
[TD]OWNR_NAME[/TD]
[TD]DATE[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/22/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col span="2"><col><col></colgroup>[/TABLE]
For example Driver 1 on 9/19 had 3 consecutive TIMEOUT's and one row appeared after the 3rd TIMEOUT. Driver 2 on 9/23 had 3 consecutive TIMEOUTS's and there were two rows after the 3rd TIMEOUT. Any assistance is greatly appreciated.
[TABLE="width: 591"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TIMEOUT[/TD]
[/TR]
[TR]
[TD]OWNR_NAME[/TD]
[TD]DATE[/TD]
[TD]JOB STATUS[/TD]
[TD][/TD]
[TD][/TD]
[TD]OWNR_NAME[/TD]
[TD]DATE[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/22/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/19/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[/TR]
[TR]
[TD]DRIVER 1[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/18/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/20/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/21/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/22/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]ACCEPTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/23/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]REJECTED[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DRIVER 2[/TD]
[TD="align: right"]9/24/2017[/TD]
[TD]TIMEOUT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col span="2"><col><col></colgroup>[/TABLE]