Table:
0
A
B
C
D
E
F
1
Class
Railway number(s)
DRG number(s)
Quantity
Year(s) of manufacture
Axle arrangement ( UIC ) Bauart
2
L 1
XI–XXII, XXVIII
99 081–99 092
13
1889–1907
C n2t
3
L 2
XXIII–XXVII
99 001–99 005
5
1903–1905
B n2t
4
Pts 2/2
XXX
99 011
1
1910
B h2t
5
Pts 3/3 N
XXIX
99 093
1
1911
C n2t
6
Pts 3/3 H
XXXI–XXXIII
99 101–99 103
3
1923
C h2t

Questions and formulas:
Question: What is average quantity, when DRG number is 99 011?
Formula: AVERAGEIFS(D1,C1,"99 011")
Formula2: AVERAGEIFS(D2:D6,C2:C6,"99 011")
Level: easy
Question: Which railway number has 3 quantity?
Formula: LET(query1,SUMMARIZE(B1,SUMX(D1)),FILTER(query1,CHOOSECOLS(query1,2)=3))
Formula2: LET(query1,SUMMARIZE(B2:B6,SUMX(D2:D6)),FILTER(query1,CHOOSECOLS(query1,2)=3))
Level: hard
Question: Which DRG number has xxx railway number?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="xxx"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="xxx"),3))
Level: medium
Question: Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?
Formula: SUM(FILTER(D1, (F1="c n2t")*(C1="99 093")))
Formula2: SUM(FILTER(D2:D6, (F2:F6="c n2t")*(C2:C6="99 093")))
Level: easy