Table:
0
A
B
C
D
E
1
Stop no.
Platform
Line
Stopping pattern
Destination
2
[2778] Claisebrook Station platforms
[2778] Claisebrook Station platforms
[2778] Claisebrook Station platforms
[2778] Claisebrook Station platforms
[2778] Claisebrook Station platforms
3
99021
1
Armadale / Thornlie
All stations
Perth
4
99022
2
Armadale / Thornlie
All stations, B, C, T
Armadale or Thornlie
5
99023
3
Midland
All stations
Perth
6
99024
4
Midland
All stations, A, B, P
Midland

Questions and formulas:
Question: What is Stopping Pattern, when Platform is 4?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1=4),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6=4),4))
Level: medium
Question: What is Stop No., when Destination is Perth, and when Line is Midland?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="perth")*(C1="midland")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,(E2:E6="perth")*(C2:C6="midland")),1))
Level: medium