Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Banants-2
2–6
Ulisses
1–4
1–2
3
Pyunik
15–2
Patani
11–2
4–0
4
Gandzasar
8–0
Pyunik-2
3–0
5–0
5
KIlikia
5–2
Mika-2
2–0
3–2
6
Mika
11–0
Ararat-2
7–0
4–0
7
Shengavit
2–3
Shirak
1–3
1–0

Questions and formulas:
Question: What is the team 1 when Ulisses is team 2?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="ulisses"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,C2:C7="ulisses"),1))
Level: medium