Table:
0
A
B
C
D
E
1
Number
Builder
Type
Date
Works number
2
1
Hinkley Locomotive Works
0-4-4 Forney locomotive
10/1882
1563
3
2
Hinkley Locomotive Works
0-4-4 Forney locomotive
10/1882
1564
4
3
Portland Company
0-4-4 Forney locomotive
4/1892
624
5
Bo-Peep
Hinkley Locomotive Works
0-4-4 Forney locomotive
1877
1261
6
4
H. K. Porter, Inc
0-4-4 Forney locomotive
8/1901
2360
7
5
Portland Company
2-4-4 Forney locomotive
11/1906
628
8
6
Baldwin Locomotive Works
2-4-4 Forney locomotive
9/1907
31827
9
7
Baldwin Locomotive Works
2-4-4 Forney locomotive
12/1913
40864
10
8
Baldwin Locomotive Works
2-4-4 Forney locomotive
3/1924
57659

Questions and formulas:
Question: With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="baldwin locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=40864))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,B2:B10="baldwin locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=40864))
Level: hard
Question: Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?
Formula: SUM(FILTER(E1, (C1="0-4-4 forney locomotive")*(B1="h. k. porter, inc")))
Formula2: SUM(FILTER(E2:E10, (C2:C10="0-4-4 forney locomotive")*(B2:B10="h. k. porter, inc")))
Level: easy
Question: Baldwin Locomotive Works, also with works number 40864, is listed as what number?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="baldwin locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=40864))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,B2:B10="baldwin locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)=40864))
Level: hard
Question: Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563?
Formula: LET(query1,LET(query1,FILTER(A1:E1,B1="hinkley locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<1563))
Formula2: LET(query1,LET(query1,FILTER(A2:E10,B2:B10="hinkley locomotive works"),SUMMARIZE(CHOOSECOLS(query1,1),SUMX(CHOOSECOLS(query1,5)))),FILTER(query1,CHOOSECOLS(query1,2)<1563))
Level: hard