Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
South Carolina 1
Samuel Dibble
Democratic
1882
Re-elected
3
South Carolina 2
George D. Tillman
Democratic
1878
Re-elected
4
South Carolina 3
D. Wyatt Aiken
Democratic
1876
Retired Democratic hold
5
South Carolina 4
William H. Perry
Democratic
1884
Re-elected
6
South Carolina 5
John J. Hemphill
Democratic
1882
Re-elected
7
South Carolina 6
George W. Dargan
Democratic
1882
Re-elected
8
South Carolina 7
Robert Smalls
Republican
1884 ( special )
Lost re-election Democratic gain

Questions and formulas:
Question: What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="re-elected")*(A1="south carolina 1")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(E2:E8="re-elected")*(A2:A8="south carolina 1")),4))
Level: medium
Question: Who was the incumbent who was first elected in 1876?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1=1876),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,D2:D8=1876),2))
Level: medium
Question: Who was the Democratic incumbent in the South Carolina 5 District?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="democratic")*(A1="south carolina 5")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,(C2:C8="democratic")*(A2:A8="south carolina 5")),2))
Level: medium
Question: What is the first elected date for the incumbent in the South Carolina 4 district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="south carolina 4"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,A2:A8="south carolina 4"),4))
Level: medium