Table:
0
A
B
C
D
E
F
G
H
I
1
NATO member
Aircraft carriers
Battleships
Cruisers
Escorts
Submarines
Torpedo boat squadrons
s Motor ship / s Naval trawler
Grand Total
2
United States
6
1
3
40
9
—
—
59
3
UK
3
1
2
31
17
4
8 + Trawlers
66
4
Canada
1
—
1
5
—
—
—
7
5
France
—
—
—
7
—
—
2
20
6
Denmark
—
—
—
3
2
—
—
7
7
Norway
—
—
—
2
2
3
3
26
8
Portugal
—
—
—
3
—
—
—
3
9
Netherlands
—
—
—
5
3
—
5
13
10
Belgium
—
—
—
—
—
—
—
2
11
TOTALS:
10
2
6
96
33
7
18
203

Questions and formulas:
Question: How many ships for the nation with grand total of 20?
Formula: LET(query1,SUMMARIZE(H1,SUMX(I1)),FILTER(query1,CHOOSECOLS(query1,2)=20))
Formula2: LET(query1,SUMMARIZE(H2:H11,SUMX(I2:I11)),FILTER(query1,CHOOSECOLS(query1,2)=20))
Level: hard
Question: How many escorts does the nation with 6 cruisers have?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:I1,D1=6),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:I11,D2:D11=6),5))
Level: medium