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) 56.0% Daniel Mason (F) 44.0%
3
North Carolina 5
William R. King
Democratic-Republican
1810
Re-elected
William R. King (DR) 100%
4
North Carolina 6
Nathaniel Macon
Democratic-Republican
1791
Re-elected
Nathaniel Macon (DR)
5
North Carolina 9
None (District created)
None (District created)
None (District created)
New seat Democratic-Republican gain
Bartlett Yancey (DR) 61.1% James Martin (F) 38.9%
6
North Carolina 10
Joseph Pearson
Federalist
1808
Re-elected
Joseph Pearson (F) 54.1% Alexander Gary (DR) 45.9%

Questions and formulas:
Question: Who were the candidates in the district where the incumbent was Nathaniel Macon?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Nathaniel Macon"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Nathaniel Macon"),6))
Level: medium
Question: What party did the incumbent Joseph Pearson belong to?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,B1="Joseph Pearson"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,B2:B6="Joseph Pearson"),3))
Level: medium