Table:
0
A
B
C
D
E
F
G
H
1
Class
Wheels
Date
Builder
No. built
1919 nos.
LMS Class
LMS nos.
2
4-4-0
131
1913
North British
6
331-336
3P
14510-5
3
4-4-0
137
1915
G&SWR Kilmarnock
6
325-330
3P
14516-21
4
0-6-0T
5
1917
North British
3
322-324
2F
16377-9
5
0-6-2T
45
1915-17
North British
18
11-28
3F
16410-27 (later 16910-27)
6
0-6-0
279
1913
North British
15
71-85
4F
17750-64
7
2-6-0
403
1915
North British
11
51-61
4F
17820-30

Questions and formulas:
Question: What is the value for the item "Class" when the value of the item "Wheels" is 137?
Formula: LET(query1,SUMMARIZE(A1,SUMX(B1)),FILTER(query1,CHOOSECOLS(query1,2)=137))
Formula2: LET(query1,SUMMARIZE(A2:A7,SUMX(B2:B7)),FILTER(query1,CHOOSECOLS(query1,2)=137))
Level: hard