Table:
0
A
B
C
D
E
F
1
District
Incumbent
Party
First elected
Result
Candidates
2
North Carolina 2
Willis Alston
Democratic-Republican
1798
Re-elected
Willis Alston (DR) 65.9% Joseph H. Bryon (F) 34.1%
3
North Carolina 3
William Kennedy
Democratic-Republican
1803 1808
Retired Democratic-Republican gain
Thomas Blount (DR)
4
North Carolina 6
Nathaniel Macon
Democratic-Republican
1791
Re-elected
Nathaniel Macon (DR) 100%
5
North Carolina 8
Richard Stanford
Democratic-Republican
1796
Re-elected
Richard Stanford (DR) 100%
6
North Carolina 10
Joseph Pearson
Federalist
1808
Re-elected
Joseph Pearson (F) 63.8% James Wallis (DR) 36.4%

Questions and formulas:
Question: When was William Kennedy first elected?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="William Kennedy"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="William Kennedy"),4))
Level: medium