Table:
0
A
B
C
D
E
1
District
Vacator
Reason for change
Successor
Date successor seated
2
Virginia 2nd
George Dromgoole ( D )
Died April 27, 1847
Richard K. Meade ( D )
Seated August 5, 1847
3
Michigan 2nd
Edward Bradley ( D )
Died August 5, 1847
Charles E. Stuart ( D )
Seated December 6, 1847
4
Pennsylvania 6th
John W. Hornbeck ( W )
Died January 16, 1848
Samuel A. Bridges ( D )
Seated March 6, 1848
5
Massachusetts 8th
John Quincy Adams ( W )
Died February 23, 1848
Horace Mann ( W )
Seated April 3, 1848
6
New York 27th
John M. Holley ( W )
Died March 8, 1848
Esbon Blackmar ( W )
Seated December 4, 1848
7
South Carolina 1st
James A. Black ( D )
Died April 3, 1848
Daniel Wallace ( D )
Seated June 12, 1848

Questions and formulas:
Question: What district is Samuel A. Bridges ( D ) assigned to as a successor?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="Samuel A. Bridges ( D )"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,D2:D7="Samuel A. Bridges ( D )"),1))
Level: medium
Question: what was the reason Richard K. Meade ( d ) became a successor?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="Richard K. Meade ( D )"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,D2:D7="Richard K. Meade ( D )"),3))
Level: medium
Question: Who is the successor for massachusetts 8th?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="Massachusetts 8th"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E7,A2:A7="Massachusetts 8th"),4))
Level: medium