Table:
0
A
B
C
D
E
1
Team #1
Agg.
Team #2
1st leg
2nd leg
2
BK Prostějov
134-148
KK Zagreb
61-69
73-79
3
KK AMAK
148-145
Zlatorog Laško
70-76
78-69
4
CSU Asesoft
147-145
Spartak
79-76
68-69
5
U Mobitelco Cluj
132-163
EWE Baskets
60-86
72-77
6
Svendborg Rabbits
168-180
HKK Široki
92-100
76-80
7
MBC Mykolaiv
138-151
DB Skyliners
68-75
70-76
8
Energy Invest Rustavi
160-200
Sumykhimprom
81-110
79-90
9
Spartak Pleven
153-176
Antalya BB BK
83-87
70-89
10
APOEL
113-135
JA Vichy
52-66
61-69
11
CSU Sibiu
144-186
Banvit Bandırma
67-74
77-112
12
Cedevita Zagreb
150-157
Hyères-Toulon
92-82
58-75
13
Körmend
171-201
EiffelTowers Den Bosch
71-88
100-113
14
BC Donetsk
120-134
AEL
65-65
55-79
15
Bakken Bears
119-164
Liege Basket
55-67
64-97

Questions and formulas:
Question: What is the 2nd leg when second team is Sumykhimprom?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="sumykhimprom"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,C2:C15="sumykhimprom"),5))
Level: medium
Question: What is the agg when the seconf leg is 58-75?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="58-75"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,E2:E15="58-75"),2))
Level: medium
Question: What is the first team when the 2nd leg is 100-113?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="100-113"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,E2:E15="100-113"),1))
Level: medium
Question: What is team 1 when the 1st leg is 92-82?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="92-82"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,D2:D15="92-82"),1))
Level: medium
Question: What is team number 1 when then 2nd leg is 64-97?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="64-97"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,E2:E15="64-97"),1))
Level: medium
Question: What is the 1st leg when team number 1 is CSU SIBIU?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="csu sibiu"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E15,A2:A15="csu sibiu"),4))
Level: medium