Table:
0
A
B
C
D
E
1
Name
Date of birth
Date of death
Reign
Relationship with predecessor
2
Philip VI the Handsome
22 July 1478
25 September 1506
27 March 1482 to 25 September 1506
her son
3
Charles II
24 February 1500
21 September 1558
25 September 1506 to 16 January 1556
his son
4
Philip VII
21 May 1527
13 September 1598
16 January 1556 to 13 September 1598
his son
5
Isabella Clara Eugenia
12 August 1566
1 December 1633
6 May 1598 to 13 July 1621
his daughter
6
Albert
15 November 1559
13 July 1621
6 May 1598 to 13 July 1621
his son-in-law
7
Philip VIII
8 April 1605
17 September 1665
31 July 1621 to 17 September 1665
their nephew
8
Charles III
6 November 1661
1 November 1700
17 September 1665 to 19 September 1678
his son

Questions and formulas:
Question: When did Charles III die?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="charles iii"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E8,A2:A8="charles iii"),3))
Level: medium