Table:
0
A
B
C
D
E
1
State (class)
Vacator
Reason for change
Successor
Date of successors formal installation
2
Indiana (1)
Vacant
James Noble died in previous Congress
Robert Hanna (AJ)
Installed August 19, 1831
3
Kentucky (3)
Vacant
Vacancy in term
Henry Clay (AJ)
Installed November 10, 1831
4
Pennsylvania (1)
Isaac D. Barnard (J)
Resigned December 6, 1831 due to ill health
George M. Dallas (J)
Installed December 13, 1831
5
Indiana (1)
Robert Hanna (AJ)
Successor elected January 3, 1832
John Tipton (J)
Installed January 3, 1832
6
Virginia (2)
Littleton Waller Tazewell (J)
Resigned July 16, 1832
William C. Rives (J)
Installed December 10, 1832

Questions and formulas:
Question: Name the successor for james noble died in previous congress
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="James Noble died in previous Congress"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,C2:C6="James Noble died in previous Congress"),4))
Level: medium
Question: Name the state class for isaac d. barnard (j)
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,B1="Isaac D. Barnard (J)"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E6,B2:B6="Isaac D. Barnard (J)"),1))
Level: medium