Schedule lookup

Kariba

Board Regular
Joined
Mar 15, 2023
Messages
59
Office Version
  1. 365
Platform
  1. Windows
I have been given a schedule below and need to link arrival times to next departure time. ie 10:05 arrival linking to next 11:15 departure or 17:40 linking to next 18:55.

This is filtered on one example - number 54 which is the only common thread between them but linked rows could be hundreds of rows apart as it's in time order. I need to be able to reliably move up column B until it finds a match and then return the value in column G. Tried a few ways but not getting required result.

Any suggestions appreciated.

Book1
ABCDEFG
1Aircraft TypeAircraft IdentifierFlightDeparture AirportDeparture TimeArrival AirportArrival Time
2737544522ATL04:35:00MCO07:00
3737544523MCO07:35:00ATL10:05
4737544578ATL11:15:00TPA14:10
5737544579TPA14:45:00ATL17:40
6737545000ATL18:55:00TPA20:35
Sheet1
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
It's a business computer so that would be a difficult and lengthy process, but will give it a go. Even if I developed it elsewhere it wouldn't work on this version. :rolleyes:
 
Upvote 0
It's a business computer so that would be a difficult and lengthy process,
A business computer with a faulty Excel is not much use so something really needs to be done with it.
 
Upvote 0
Finally got the 365 upgrade and the LET(AT,I$2:I$100,t,MAX(FILTER(AT,(D$2:D$100=V2)*(AT<G2),NA())),IFNA(t-INT(t),"")) is working beautifully.

Thanks for all your help
 
Upvote 0
Good news eventually!! 👏👏
Thanks for letting us know. (y)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top