Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Paris Saint-Germain
5–1
Wolfsburg
2–0
3–1
3
Copenhagen
3–4
Manchester City
2–2
1–2
4
NEC
0–4
Hamburg
0–3
0–1
5
Sampdoria
0–3
Metalist Kharkiv
0–1
0–2
6
Braga
4–1
Standard Liège
3–0
1–1
7
Aston Villa
1–3
CSKA Moscow
1–1
0–2
8
Lech Poznań
3–4
Udinese
2–2
1–2
9
Olympiacos
2–5
Saint-Étienne
1–3
1–2
10
Fiorentina
1–2
Ajax
0–1
1–1
11
Aalborg BK
6–1
Deportivo
3–0
3–1
12
Werder Bremen
3–3 ( a )
Milan
1–1
2–2
13
Bordeaux
3–4
Galatasaray
0–0
3–4
14
Dynamo Kyiv
3–3 ( a )
Valencia
1–1
2–2
15
Zenit St. Petersburg
4–2
Stuttgart
2–1
2–1
16
Marseille
1–1 (7–6 p )
Twente
0–1
1–0 ( aet )
17
Shakhtar Donetsk
3–1
Tottenham Hotspur
2–0
1–1

Questions and formulas:
Question: What is the second leg that Valencia was on?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="valencia"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E17,C2:C17="valencia"),5))
Level: medium