Table:
0
A
B
C
D
E
1
District
Incumbent
Party
First elected
Result
2
Missouri 1
John Richard Barret
Democratic
1858
Lost Re-election Republican Gain
3
Missouri 2
Thomas L. Anderson
Independent Democrat
1857
Retired Constitutional Union Gain
4
Missouri 3
John Bullock Clark
Democratic
1856
Re-elected
5
Missouri 4
James Craig
Democratic
1856
Retired Democratic Hold
6
Missouri 5
Samuel H. Woodson
American
1856
Retired Democratic Gain
7
Missouri 6
John S. Phelps
Democratic
1844
Re-elected
8
Missouri 7
John William Noell
Democratic
1858
Re-elected

Questions and formulas:
Question: result is lost re-election republican gain, what is the district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="lost re-election republican gain"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,E2:E8="lost re-election republican gain"),1))
Level: medium