Table:
0
A
B
C
D
E
F
1
Name
Birth
Marriage
Became Consort
Ceased to be Consort
Spouse
2
Louise of Hesse-Kassel
7 September 1817
26 May 1842
15 November 1863 husband's ascession
29 September 1898
Christian IX
3
Louise of Sweden
31 October 1851
28 July 1869
29 January 1906 husband's ascession
14 May 1912 husband's death
Frederick VIII
4
Alexandrine of Mecklenburg-Schwerin
24 December 1879
26 April 1898
14 May 1912 husband's ascession
20 April 1947 husband's death
Christian X
5
Ingrid of Sweden
28 March 1910
24 May 1935
20 April 1947 husband's ascession
14 January 1972 husband's death
Frederick IX
6
Henri de Laborde de Monpezat
11 June 1934
10 June 1967
14 January 1972
Incumbent
Margrethe II

Questions and formulas:
Question: Name the spouse for louise of hesse-kassel
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="louise of hesse-kassel"),6))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,A2:A6="louise of hesse-kassel"),6))
Level: medium
Question: Name the became consort for christian ix spouse
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="christian ix"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="christian ix"),4))
Level: medium
Question: Name the marriagefor ceased to be consort of 29 september 1898
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,E1="29 september 1898"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,E2:E6="29 september 1898"),3))
Level: medium
Question: Tell me the name of the person married to frederick ix
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="frederick ix"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="frederick ix"),1))
Level: medium
Question: Name the birth of the person married 24 may 1935
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,C1="24 may 1935"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,C2:C6="24 may 1935"),2))
Level: medium