Table:
0
A
B
C
D
E
F
1
Elector
Nationality
Order
Title
Elevated
Elevator
2
Rinaldo Conti de Segni
ni Anagni
Cardinal-bishop
Bishop of Ostia e Velletri
September 18, 1227
Gregory IX
3
Romano Bonaventura
Roman
Cardinal-bishop
Bishop of Porto e Santa Rufina
1216
Innocent III
4
Goffredo da Castiglione
ese Milan
Cardinal-bishop
Bishop of Sabina
September 18, 1227
Gregory IX
5
Tommaso da Capua
Capua
Cardinal-priest
Title of S. Sabina
1216
Innocent III
6
Stefano de Normandis dei Conti
Roman
Cardinal-priest
Title of S. Maria in Trastevere
1216
Innocent III
7
Giovanni Colonna
Roman
Cardinal-priest
Title of S. Prassede
February 18, 1212
Innocent III
8
Sinibaldo Fieschi
Lavagnesi
Cardinal-priest
Title of S. Lorenzo in Lucina
September 18, 1227
Gregory IX
9
Rainiero Capocci , O.Cist.
Todi
Cardinal-deacon
Deacon of S. Maria in Cosmedin
1216
Innocent III
10
Gil Torres
Spanish
Cardinal-deacon
Deacon of Ss. Cosma e Damiano
December, 1216
Honorius III
11
Riccardo Annibaldi
Roman
Cardinal-deacon
Deacon of S. Angelo in Pescheria
1237
Gregory IX
12
Robert Somercotes
English
Cardinal-deacon
Deacon of S. Eustachio
1238
Gregory IX

Questions and formulas:
Question: What order has the title Deacon of SS. Cosma E Damiano?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="deacon of ss. cosma e damiano"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F12,D2:D12="deacon of ss. cosma e damiano"),3))
Level: medium