Table:
0
A
B
C
D
E
1
Date
Tournament
Surface
Opponent
Score
2
January 14, 1996
Auckland , New Zealand
Hard
Brett Steven
6–4, 6–4
3
November 1, 1998
Mexico City , Mexico
Clay
Xavier Malisse
6–3, 6–3
4
May 6, 2001
Munich , Germany
Clay
Antony Dupuis
6–4, 7–5
5
July 15, 2001
Gstaad , Switzerland
Clay
Juan Carlos Ferrero
6–1, 6–7 (5–7) , 7–5
6
July 13, 2003
Gstaad, Switzerland
Clay
Roger Federer
5–7, 6–3, 6–3, 1–6, 6–3
7
October 10, 2004
Tokyo , Japan
Hard
Taylor Dent
5–7, 6–1, 6–3
8
November 3, 2004
Basel , Switzerland
Carpet (i)
David Nalbandian
5–7, 6–3, 6–4, 1–6, 6–2

Questions and formulas:
Question: What was the surface for October 10, 2004?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="october 10, 2004"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,A2:A8="october 10, 2004"),3))
Level: medium
Question: What was the surface for the opponent Roger Federer?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="roger federer"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8="roger federer"),3))
Level: medium