Table:
0
A
B
C
D
E
1
Team 1
Agg.
Team 2
1st leg
2nd leg
2
Al-Ittihad Tripoli
1-3
Al-Majd
1-1
0-2
3
Al-Wahda Mecca
2-4
Entente Sportive de Sétif
1-1
1-3
4
Al-Oruba
3-7
Wydad Casablanca
2-3
1-4
5
Al-Merrikh
3-5
Raja Casablanca
2-2
1-3
6
Najaf FC
0-3
Al-Taliya
0-3
0-0
7
Club Athletic Bizertin
3-4
Al-Faisaly
1-1
2-3
8
Al-Wihdat
1-2
Tala'ea El-Gaish
0-0
1-2
9
Al-Arabi
( w/o )
USM Alger
3-2
Sus 1

Questions and formulas:
Question: Which 2nd leg came after a 1st leg of 0-3?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="0-3"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,D2:D9="0-3"),5))
Level: medium
Question: For a Team 1 of Al-Merrikh, what was the aggregate?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="al-merrikh"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,A2:A9="al-merrikh"),2))
Level: medium
Question: Who was the Team 1 for a 2nd leg of 1-4?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="1-4"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,E2:E9="1-4"),1))
Level: medium
Question: For an aggregate of 1-3, what was the 2nd leg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="1-3"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,B2:B9="1-3"),5))
Level: medium
Question: For a team 2 of Al-Faisaly, what was the 2nd leg?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="al-faisaly"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="al-faisaly"),5))
Level: medium