Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
Kentucky 1
James Clark
Democratic-Republican
1812
Re-elected
James Clark (DR) 100%
3
Kentucky 2
Joseph H. Hawkins
Democratic-Republican
1814 ( special )
Retired Democratic-Republican hold
Henry Clay (DR)
4
Kentucky 3
Richard M. Johnson
Democratic-Republican
1806
Re-elected
Richard M. Johnson (DR) 100%
5
Kentucky 4
Joseph Desha
Democratic-Republican
1806
Re-elected
Joseph Desha (DR) 100%
6
Kentucky 6
Solomon P. Sharp
Democratic-Republican
1812
Re-elected
Solomon P. Sharp (DR) 100%
7
Kentucky 7
Samuel McKee
Democratic-Republican
1808
Re-elected
Samuel McKee (DR) 61.3% Samuel South 38.7%
8
Kentucky 8
Stephen Ormsby
Democratic-Republican
1810
Re-elected
Stephen Ormsby (DR) James Moore
9
Kentucky 9
Thomas Montgomery
Democratic-Republican
1812
Lost re-election Democratic-Republican hold
Micah Taul (DR) Thomas Montgomery (DR)

Questions and formulas:
Question: Who is every incumbent when Kentucky 2 is the district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Kentucky 2"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,A2:A9="Kentucky 2"),2))
Level: medium
Question: Who is first elected when Kentucky 6 is the district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Kentucky 6"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,A2:A9="Kentucky 6"),4))
Level: medium
Question: What is every district for incumbent Joseph Desha?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Joseph Desha"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F9,B2:B9="Joseph Desha"),1))
Level: medium