D
David Gladstone
I am trying to use the MATCH function to find last train that I can
catch to reach my destination before, on time or just after a given
time.
The arrival times are E1:E10 and also named as ArriveTime and is
formatted HH:MM AM/PM
The target time in H1 and is also formatted as HH:MM AM/PM.
For test purposes I am using 10:00AM and ArriveTime contains
09:59,10:00 and 10:01AM
Using =MATCH($H$1,ArriveTime,0) or =MATCH($H$1,ArriveTime,1) work fine
and both return the row (5), but =MATCH($H$1,ArriveTime,-1) returns #N/
A instead of the row of the earliest train after the target.
I am using Excel 2007
catch to reach my destination before, on time or just after a given
time.
The arrival times are E1:E10 and also named as ArriveTime and is
formatted HH:MM AM/PM
The target time in H1 and is also formatted as HH:MM AM/PM.
For test purposes I am using 10:00AM and ArriveTime contains
09:59,10:00 and 10:01AM
Using =MATCH($H$1,ArriveTime,0) or =MATCH($H$1,ArriveTime,1) work fine
and both return the row (5), but =MATCH($H$1,ArriveTime,-1) returns #N/
A instead of the row of the earliest train after the target.
I am using Excel 2007