Table:
0
A
B
C
D
E
1
Train Number
Train Name
Origin
Destination
Frequency (inbound/outbound)
2
2397/98
Mahabodhi Express
Gaya
New Delhi
Daily
3
3151/52
Kolkata-Jammutawi Exp
Kolkata
Jammutawi
Daily
4
3307/08
Dhanbad-Ludhiana Exp
Dhanbad
Firozpur
Daily
5
5109/10
Budh Poornima Exp
Varanasi
Rajgir
Daily
6
8611/12
Intercity Exp
Varanasi
Ranchi
4 days
7
8631/32
Garib Nwaz Exp
Ranchi
Ajmer
2 days
8
8311/12
Samabalpur Varanasi Exp
Sambalpur
Varanasi
2 days
9
3009/10
Dehradoon Exp
Howrah
Dehradoon
Daily
10
3243/44
Intercity Exp (via) Gaya
Bhabua Road
Patna
Daily
11
3249/50
Intercity Exp (via) Ara
Bhabua Road
Patna
Daily

Questions and formulas:
Question: What is the destination of the rail with Dhanbad as the origin?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="dhanbad"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,C2:C11="dhanbad"),4))
Level: medium
Question: What is the destination of the Garib nwaz exp train?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="garib nwaz exp"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,B2:B11="garib nwaz exp"),4))
Level: medium
Question: What is the train name of the rail with a daily frequency and a destination of Rajgir?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="daily")*(D1="rajgir")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,(E2:E11="daily")*(D2:D11="rajgir")),2))
Level: medium
Question: What is the train name of the rail with a daily frequency and Jammutawi as the destination?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="daily")*(D1="jammutawi")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,(E2:E11="daily")*(D2:D11="jammutawi")),2))
Level: medium
Question: What is the frequency of the rail with an origin of Ranchi?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="ranchi"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,C2:C11="ranchi"),5))
Level: medium
Question: What is the frequency of the train named Garib nwaz exp?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="garib nwaz exp"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,B2:B11="garib nwaz exp"),5))
Level: medium