Table:
0
A
B
C
D
E
1
District
Vacator
Reason for change
Successor
Date successor seated
2
Tennessee 1st
Vacant
Tennessee re-admitted into the Union
Nathaniel G. Taylor (U)
July 24, 1866
3
Tennessee 2nd
Vacant
Tennessee re-admitted into the Union
Horace Maynard (UU)
July 24, 1866
4
Tennessee 3rd
Vacant
Tennessee re-admitted into the Union
William B. Stokes (UU)
July 24, 1866
5
Tennessee 4th
Vacant
Tennessee re-admitted into the Union
Edmund Cooper (U)
July 24, 1866
6
Tennessee 5th
Vacant
Tennessee re-admitted into the Union
William B. Campbell (U)
July 24, 1866
7
Tennessee 6th
Vacant
Tennessee re-admitted into the Union
Samuel M. Arnell (UU)
July 24, 1866
8
Tennessee 7th
Vacant
Tennessee re-admitted into the Union
Isaac R. Hawkins (U)
July 24, 1866
9
Tennessee 8th
Vacant
Tennessee re-admitted into the Union
John W. Leftwich (UU)
July 24, 1866
10
New York 16th
Orlando Kellogg (R)
Died August 24, 1865
Robert S. Hale (R)
December 3, 1866
11
Pennsylvania 16th
Alexander H. Coffroth (D)
Lost contested election February 19, 1866
William H. Koontz (R)
July 18, 1866
12
Indiana 7th
Daniel W. Voorhees (D)
Lost contested election February 23, 1866
Henry D. Washburn (R)
February 23, 1866
13
New York 8th
James Brooks (D)
Lost contested election April 7, 1866
William E. Dodge (R)
April 7, 1866
14
New York 3rd
James Humphrey (R)
Died June 16, 1866
John W. Hunter (D)
December 4, 1866
15
Kentucky 3rd
Henry Grider (D)
Died September 7, 1866
Elijah Hise (D)
December 3, 1866
16
Pennsylvania 11th
Philip Johnson (D)
Died January 29, 1867
Vacant
Not filled this term

Questions and formulas:
Question: When nathaniel g. taylor (u) is the successor what is the vacator?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="Nathaniel G. Taylor (U)"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="Nathaniel G. Taylor (U)"),2))
Level: medium
Question: When william b. campbell (u) is the successor what is the district?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="William B. Campbell (U)"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="William B. Campbell (U)"),1))
Level: medium
Question: When james brooks (d) is the vacator what is the date the successor was seated?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="James Brooks (D)"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,B2:B16="James Brooks (D)"),5))
Level: medium
Question: When john w. leftwich (uu) is the successor what is the date the successor was seated?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,D1="John W. Leftwich (UU)"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,D2:D16="John W. Leftwich (UU)"),5))
Level: medium
Question: When new york 8th is teh district who is the successor?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="New York 8th"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E16,A2:A16="New York 8th"),4))
Level: medium