Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Kentucky 1
David Trimble
Adams
1816
Lost re-election Jacksonian gain
Henry Daniel (J) 52.2% David Trimble (A) 47.8%
3
Kentucky 2
Thomas Metcalfe
Adams
1818
Re-elected
Thomas Metcalfe (A) 54.9% James Conn 45.1%
4
Kentucky 3
James Clark
Adams
1812 1825 ( special )
Re-elected
James Clark (A) 57.9% Benjamin Taylor (J) 42.1%
5
Kentucky 5
Robert L. McHatton
Jacksonian
1826 ( special )
Re-elected
Robert L. McHatton (J) 52.5% Alfred Sanford 47.5%
6
Kentucky 7
Thomas P. Moore
Jacksonianian
1822
Re-elected
Thomas P. Moore (J) 90.5% Thompson 9.5%
7
Kentucky 9
Charles A. Wickliffe
Jacksonian
1822
Re-elected
Charles A. Wickliffe (J) 66.1% Lee White 33.9%
8
Kentucky 10
Francis Johnson
Adams
1820 (special)
Lost re-election Jacksonian gain
Joel Yancey (J) 50.8% Francis Johnson (A) 49.2%

Questions and formulas:
Question: In what district was the incumbent Charles A. Wickliffe? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Charles A. Wickliffe"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Charles A. Wickliffe"),1))
Level: medium
Question: What party did the incumbent Thomas P. Moore belong to?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Thomas P. Moore"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,B2:B8="Thomas P. Moore"),3))
Level: medium
Question: Who were the candidates in the Kentucky 9 district? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Kentucky 9"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Kentucky 9"),6))
Level: medium
Question: Who were the candidates in the Kentucky 5 district? 
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Kentucky 5"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Kentucky 5"),6))
Level: medium