Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
Elected
Status
2007 Result
2
1st
Marty Williams
Republican
1995
Defeated in Primary
John Miller (D) 51.1% Tricia Stall (R) 48.6%
3
6th
Nick Rerras
Republican
1999
Defeated
Ralph Northam (D) 54.3% Nick Rerras (R) 45.5%
4
13th
Fred Quayle
Republican
1991
Reelected
Fred Quayle (R) 58.6% Steve Heretick (D) 41.1%
5
14th
Harry Blevins
Republican
2001
Reelected
Harry Blevins (R) 70.8% Donald Tabor Jr. (L) 28.8%
6
15th
Frank Ruff
Republican
1999
Reelected
Frank Ruff (R) 59.0% Bob Wilkerson (D) 40.9%
7
16th
Henry Marsh III
Democratic
1991
Reelected
Henry Marsh III (D) 66.6% Robert Owens (I) 33.1%
8
17th
Edd Houck
Democratic
1983
Reelected
Edd Houck (D) 56.0% Chris Yakabouski (R) 43.9%
9
19th
Charles Hawkins
Republican
1991
Retired
Robert Hurt (R) 75.7% Sherman Witcher (I) 24.2%
10
20th
Roscoe Reynolds
Democratic
1996
Reelected
Roscoe Reynolds (D) 63.0% Jeff Evans (R) 36.9%
11
22nd
Brandon Bell
Republican
1991
Defeated in Primary
Ralph K. Smith (R) 50.8% Michael Breiner (D) 49.0%
12
28th
John Chichester
Republican
1977
Retired
Richard Stuart (R) 50.6% Albert Pollard (D) 49.2%
13
33rd
Mark Herring
Democratic
2006
Reelected
Mark Herring (D) 56.9% Patricia Phillips (R) 43.0%
14
35th
Dick Saslaw
Democratic
1980
Reelected
Dick Saslaw (D) 77.9% Mario Palmiotto (IG) 21.0%
15
37th
Ken Cuccinelli
Republican
2001
Reelected
Ken Cuccinelli (R) 50.0% Janet Oleszek (D) 49.8%

Questions and formulas:
Question: In which district was the incumbent Dick Saslaw? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Dick Saslaw"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,B2:B15="Dick Saslaw"),1))
Level: medium
Question: What was the 2007 result in the district where the incumbent was elected in 1996? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1=1996),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,D2:D15=1996),6))
Level: medium
Question: What was the 2007 result in the 28th district? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="28th"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,A2:A15="28th"),6))
Level: medium
Question: In what district was the incumbent Charles Hawkins? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Charles Hawkins"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F15,B2:B15="Charles Hawkins"),1))
Level: medium