Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
South Carolina 1
George Swinton Legaré
Democratic
1902
Re-elected
3
South Carolina 2
James O'H. Patterson
Democratic
1904
Re-elected
4
South Carolina 3
Wyatt Aiken
Democratic
1902
Re-elected
5
South Carolina 4
Joseph T. Johnson
Democratic
1900
Re-elected
6
South Carolina 5
David E. Finley
Democratic
1898
Re-elected
7
South Carolina 6
J. Edwin Ellerbe
Democratic
1904
Re-elected
8
South Carolina 7
Asbury F. Lever
Democratic
1901 (special)
Re-elected

Questions and formulas:
Question: when first elected was 1900 what was the district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1900),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1900),1))
Level: medium
Question: when first elected was 1898 what was the party?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1898),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1898),3))
Level: medium