RyanHillAZ
New Member
- Joined
- Oct 31, 2014
- Messages
- 10
Hello Everyone,
I am trying to figure out how to write a formula to verify if a bus made it to the scheduled stop within a given window of time.
My data shows the bus schedule and it also shows any bus that arrived within the given landmark (geo-fence) within a period of time.
I would like to be able to say "If any vehicle arrived within the landmark stop (ex. 411 Stop C @ 9:15 AM) at least 30 minutes prior to 9:15 AM and within 5 minutes after 9:15 AM."
I am not even close to figuring this one out. The nearest reference that I could find on the message board was the post of "VLOOKUP with Time Range" - http://www.mrexcel.com/forum/excel-questions/384955-vlookup-time-range.html
But I am not proficient with INDEX or MATCH functions.
Here is some of my sample data: This comes from a report showing when the bus actually arrived within the given landmark location.
<tbody>
</tbody>
Here is the route information as to when the bus is supposed to be at the stop location.
<tbody>
</tbody>
Columns E, F, G, & H can be ignored in the above example. They are basically helper columns to convert the time into a decimal and identify if the bus made the stop within a given time.
The full data excel can be found on my google drive link if you would like to see the full landmark history sheet and the validation worksheet that I am working to create.
Excel Link: https://drive.google.com/file/d/0B-z07hmwXXmIeFJCaHp0V0tDVms/view?usp=sharing
Thanks so much!
Ryan Hill
I am trying to figure out how to write a formula to verify if a bus made it to the scheduled stop within a given window of time.
My data shows the bus schedule and it also shows any bus that arrived within the given landmark (geo-fence) within a period of time.
I would like to be able to say "If any vehicle arrived within the landmark stop (ex. 411 Stop C @ 9:15 AM) at least 30 minutes prior to 9:15 AM and within 5 minutes after 9:15 AM."
I am not even close to figuring this one out. The nearest reference that I could find on the message board was the post of "VLOOKUP with Time Range" - http://www.mrexcel.com/forum/excel-questions/384955-vlookup-time-range.html
But I am not proficient with INDEX or MATCH functions.
Here is some of my sample data: This comes from a report showing when the bus actually arrived within the given landmark location.
VEHICLE |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> | |||
701 | 411 stop C |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody>
</tbody>
Here is the route information as to when the bus is supposed to be at the stop location.
Direction | Landmark | Scheduled Time | Actual Time | (+,-) | Decimal | (Y,N) | % | ||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | =D2-C2 | =E2 | On Time? | =IF((F2="Y"),1,IF((F2="N"),0)) | ||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | =D3-C3 | |||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? | ||||||||
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ? formula ? |
<tbody>
</tbody>
Columns E, F, G, & H can be ignored in the above example. They are basically helper columns to convert the time into a decimal and identify if the bus made the stop within a given time.
The full data excel can be found on my google drive link if you would like to see the full landmark history sheet and the validation worksheet that I am working to create.
Excel Link: https://drive.google.com/file/d/0B-z07hmwXXmIeFJCaHp0V0tDVms/view?usp=sharing
Thanks so much!
Ryan Hill