Table:
0
A
B
C
D
E
1
Manufacturer
Type
Quantity
SHT Nos.
GWR Nos.
2
Hudswell Clarke
0-4-0ST
1
3
150
3
Andrew Barclay Sons & Co.
0-4-0ST
1
5
701
4
Peckett and Sons
0-4-0ST
4
7–10
886, 926, 930, 933
5
Peckett and Sons
0-4-0ST
3
11, 12, 18
929, 968, 1098
6
Peckett and Sons
0-6-0ST
3
15–17
1085, 1086, 937
7
Hudswell Clarke
0-4-0ST
1
14
943
8
Hawthorn Leslie
0-4-0ST
1
13
974

Questions and formulas:
Question: How many have SHT number 5?
Formula: SUM(FILTER(C1, D1=5))
Formula2: SUM(FILTER(C2:C8, D2:D8=5))
Level: easy
Question: What GWR is associated with 4?
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)=4))
Formula2: LET(query1,SUMMARIZE(E2:E8,SUMX(C2:C8)),FILTER(query1,CHOOSECOLS(query1,2)=4))
Level: hard