Table:
0
A
B
C
D
E
1
Elector
Nationality
Order and title
Elevated
Elevator
2
João Pedro Julião
Portuguese
Cardinal-Bishop of Frascati
June 3, 1273
Gregory X
3
Bertrand de Saint-Martin O.S.B.
French
Cardinal-Bishop of Sabina
June 3, 1273
Gregory X
4
Simone Paltineri
n Padua
Cardinal-priest of Ss. Silvestro e Martino
December 17, 1261
Urban IV
5
Anchero Pantaleone
French
Cardinal-priest of S. Prassede
May 1262
Urban IV
6
Guillaume de Bray
French
Cardinal-priest of S. Marco
May 1262
Urban IV
7
Riccardo Annibaldi
Roman
Cardinal-deacon of S. Angelo in Pescheria
1238
Gregory IX
8
Giovanni Gaetano Orsini
Roman
Cardinal-deacon of S. Nicola in Carcere Tulliano
May 28, 1244
Innocent IV
9
Giacomo Savelli
Roman
Cardinal-deacon of S. Maria in Cosmedin
December 17, 1261
Urban IV
10
Goffredo da Alatri
Alatri
Cardinal-deacon of S. Giorgio in Velabro
December 17, 1261
Urban IV
11
Matteo Orsini Rosso
Roman
Cardinal-deacon of S. Maria in Portico
May 1262
Urban IV

Questions and formulas:
Question: Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="cardinal-deacon of s. nicola in carcere tulliano"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,C2:C11="cardinal-deacon of s. nicola in carcere tulliano"),5))
Level: medium
Question: The Cardinal-Priest of S. Prassede order and title has who as the elevator?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="cardinal-priest of s. prassede"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,C2:C11="cardinal-priest of s. prassede"),5))
Level: medium
Question: When the elevator was Innocent IV what was the nationality?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="innocent iv"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,E2:E11="innocent iv"),2))
Level: medium
Question: When Giovanni Gaetano Orsini was the elector who was the elevator?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="giovanni gaetano orsini"),5))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,A2:A11="giovanni gaetano orsini"),5))
Level: medium
Question: When Anchero Pantaleone was the elector what is under nationality?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="anchero pantaleone"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,A2:A11="anchero pantaleone"),2))
Level: medium
Question: With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(D1="may 1262")*(A1="guillaume de bray")),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E11,(D2:D11="may 1262")*(A2:A11="guillaume de bray")),3))
Level: medium