Table:
0
A
B
C
D
E
1
Navy
Name
Pennant
Commissioned
Home port
2
Royal Navy
Brecon
M29
1980
HMS Raleigh
3
Royal Navy
Ledbury
M30
1981
Portsmouth
4
Royal Navy
Cattistock
M31
1982
Portsmouth
5
Royal Navy
Cottesmore
M32
1983
Portsmouth
6
Royal Navy
Brocklesby
M33
1982
Portsmouth
7
Royal Navy
Middleton
M34
1984
Portsmouth
8
Royal Navy
Dulverton
M35
1983
Portsmouth
9
Royal Navy
Bicester
M36
1988
Portsmouth
10
Royal Navy
Chiddingfold
M37
1984
Portsmouth
11
Royal Navy
Atherstone
M38
1986
Portsmouth
12
Royal Navy
Hurworth
M39
1985
Portsmouth
13
Royal Navy
Berkeley
M40
1986
Portsmouth
14
Royal Navy
Quorn
M41
1989
Portsmouth
15
Hellenic Navy
Europa
M62
2001
Salamis
16
Hellenic Navy
Kallisto
M63
2000
Salamis
17
Lithuanian Naval Force
Skalvis
M53
2011
Klaipėda
18
Lithuanian Naval Force
Kuršis
M51
2011
Klaipėda

Questions and formulas:
Question: What is the home port of m40?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="m40"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E18,C2:C18="m40"),5))
Level: medium
Question: What is the navy for middleton with a home port of portsmouth after 1983?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="portsmouth")*(D1>1983)*(B1="middleton")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E18,(E2:E18="portsmouth")*(D2:D18>1983)*(B2:B18="middleton")),1))
Level: medium