Table:
0
A
B
C
D
E
F
G
1
Class
Date
Builder
No. built
1919 nos.
LMS Class
LMS nos.
2
157
1879-81
G&SWR Kilmarnock
12
720-5
1P
14001-2
3
119
1882-5
G&SWR Kilmarnock
24
467-8, 700-719
1P
14116-37
4
153
1886-9
G&SWR Kilmarnock
20
448-466
1P
14138-56
5
1
1879-81
G&SWR Kilmarnock
4
728-31
1P
15241-4
6
291
1883
A.Barclay
1
734
U
16042
7
218
1881
Andrews, Barr & Co
2
658-9
U
16040-1
8
224
1881-92
G&SWR Kilmarnock
44
135-9, 560-616 with gaps
1F
17112-64
9
224
1883
Neilson
10
135-9, 560-616 with gaps
1F
17112-64
10
224
1889
Dübs
10
135-9, 560-616 with gaps
1F
17112-64

Questions and formulas:
Question: In 1879-81 with number built 4, what is the LMS nos?
Formula: LET(query1,LET(query1,FILTER(A1:G1,B1="1879-81"),SUMMARIZE(CHOOSECOLS(query1,7),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=4))
Formula2: LET(query1,LET(query1,FILTER(A2:G10,B2:B10="1879-81"),SUMMARIZE(CHOOSECOLS(query1,7),SUMX(CHOOSECOLS(query1,4)))),FILTER(query1,CHOOSECOLS(query1,2)=4))
Level: hard
Question: On which date was the class 157?
Formula: LET(query1,SUMMARIZE(B1,SUMX(A1)),FILTER(query1,CHOOSECOLS(query1,2)=157))
Formula2: LET(query1,SUMMARIZE(B2:B10,SUMX(A2:A10)),FILTER(query1,CHOOSECOLS(query1,2)=157))
Level: hard