Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Linfield
1–3
Dinamo Zagreb
0–2
1–1
3
Valletta
0–3
Artmedia Petržalka
0–2
0–1
4
Dinamo Tbilisi
3–1
NSÍ Runavík
3–0
0–1
5
FC Santa Coloma
2–7
Kaunas
1–4
1–3
6
Murata
0–9
IFK Göteborg
0–5
0–4
7
Llanelli
1–4
Ventspils
1–0
0–4
8
Anorthosis
3–0
Pyunik Yerevan
1–0
2–0
9
Inter Baku
1–1 ( a )
Rabotnički
0–0
1–1
10
Tampere United
3–2
Budućnost
2–1
1–1
11
F91 Dudelange
0–3
Domžale
0–1
0–2
12
Dinamo Tirana
1–4
Modriča
0–2
1–2
13
Aktobe
1–4
Sheriff Tiraspol
1–0
0–4
14
Drogheda United
3–1
Levadia
2–1
1–0
15
BATE Borisov
3–0
Valur
2–0
1–0

Questions and formulas:
Question: What is the team 2 for team 1 of Valletta?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="valletta"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,A2:A15="valletta"),3))
Level: medium