Table:
0
A
B
C
D
E
1
Class
Railway number(s)
Quantity
Year(s) of manufacture
Type
2
BW
1–5
5
1887–1900
A1 bm
3
DW ( de )
1–5
5
1895–1901
A1 n2
4
DW ( de )
6–17
12
1903–1909
A1 h2
5
AW
1
(1)
(1897)
Bo′2′ g2t
6
DWss ( de )
1
1
1907
(1A)2′ h2

Questions and formulas:
Question: What is the class of the a1 bm type?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="a1 bm"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,E2:E6="a1 bm"),1))
Level: medium
Question: What is the quantity of the aw class?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="aw"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="aw"),3))
Level: medium
Question: What is the class with 1 quantity?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1=1),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6=1),1))
Level: medium
Question: What is the railway number of the aw class?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="aw"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,A2:A6="aw"),2))
Level: medium