Schedule lookup

Kariba

Board Regular
Joined
Mar 15, 2023
Messages
57
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
 
It's not in a formal table ..
Not too surprising then that a formula referring to a table structure doesn't work. ;)

Thanks for the additional information. See if this works any better.

Kariba.xlsm
DGIUVW
1Aircraft Registration IdentifierDeparture TimeArrival TimeIdentifierArrival
21807/09/2023 05:4507:40:0018 
32007/09/2023 06:0007:30:0020 
41307/09/2023 08:0009:10:0013 
51807/09/2023 08:1010:00:001807:40:00
62007/09/2023 08:2510:45:002007:30:00
71307/09/2023 09:4011:25:001309:10:00
81807/09/2023 10:5013:50:001810:00:00
92007/09/2023 11:2013:55:002010:45:00
101307/09/2023 11:5513:35:001311:25:00
111307/09/2023 14:2015:40:001313:35:00
121807/09/2023 14:2017:15:001813:50:00
131307/09/2023 16:1017:25:001315:40:00
142007/09/2023 16:1519:05:002013:55:00
151307/09/2023 17:5519:25:001317:25:00
161807/09/2023 18:0019:40:001817:15:00
172007/09/2023 19:3522:15:002019:05:00
181307/09/2023 19:5521:15:001319:25:00
191807/09/2023 20:1021:45:001819:40:00
Catering Schedule
Cell Formulas
RangeFormula
V2:V19V2=D2
W2:W19W2=LET(AT,I$2:I$100,t,MAX(FILTER(AT,(D$2:D$100=V2)*(AT<G2),NA())),IFNA(t-INT(t),""))
 
Upvote 0
Solution

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
1694087988110.png

1694088445382.png
 
Upvote 0
That would indicate to me that this information may not be valid since FILTER is a standard function in Microsoft 365.

1694088831776.png


Can you confirm that your version is actually 365?

In a blank cell if you type =FILT do you get these two options appearing?

1694089307625.png


If you close right out of Excel and then open up with a blank workbook, does this work as shown here?

23 09 07.xlsm
AB
1aa
2ba
3a
Test
Cell Formulas
RangeFormula
B1:B2B1=FILTER(A1:A3,A1:A3="a")
Dynamic array formulas.



.. or for a different approach, try this

Kariba.xlsm
DGIUVW
1Aircraft Registration IdentifierDeparture TimeArrival TimeIdentifierArrival
21807/09/2023 05:4507:40:0018 
32007/09/2023 06:0007:30:0020 
41307/09/2023 08:0009:10:0013 
51807/09/2023 08:1010:00:001807:40:00
62007/09/2023 08:2510:45:002007:30:00
71307/09/2023 09:4011:25:001309:10:00
81807/09/2023 10:5013:50:001810:00:00
92007/09/2023 11:2013:55:002010:45:00
101307/09/2023 11:5513:35:001311:25:00
111307/09/2023 14:2015:40:001313:35:00
121807/09/2023 14:2017:15:001813:50:00
131307/09/2023 16:1017:25:001315:40:00
142007/09/2023 16:1519:05:002013:55:00
151307/09/2023 17:5519:25:001317:25:00
161807/09/2023 18:0019:40:001817:15:00
172007/09/2023 19:3522:15:002019:05:00
181307/09/2023 19:5521:15:001319:25:00
191807/09/2023 20:1021:45:001819:40:00
Catering Schedule
Cell Formulas
RangeFormula
V2:V19V2=D2
W2:W19W2=LET(t,AGGREGATE(14,6,I$2:I$100/((D$2:D$100=V2)*(I$2:I$100<G2)),1),IFERROR(t-INT(t),""))
 
Last edited:
Upvote 0
Hi

1694091347093.png


Only getting the one option on FILT function.
Getting the #NAME? error on the alternative
 
Upvote 0
Yes, I had done. Getting "That function isn't valid" on first and getting the #NAME? error on the alternative.
 
Upvote 0
getting the #NAME? error on the alternative.
Do you mean that you got a #NAME? error on the formula using the AGGREGATE function? If so, I think something has gone very wrong with your Excel. You may need to do a repair or re-install.
 
Upvote 0
Yes, #NAME? error on the aggregate function. Might explain why I'm having so many issues
 
Upvote 0
What is the build version is it 1908?
1694095358893.png
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,140
Members
449,098
Latest member
Doanvanhieu

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