Table:
0
A
B
C
D
E
F
G
H
1
Name
Father
Birth
Marriage
Became Countess
Ceased to be Countess
Death
Spouse
2
Beatrice of Brabant
Henry II, Duke of Brabant ( Leuven )
1225
November 1247
November 1247
6 June 1251 husband's death
11 November 1288
William II
3
Matilda of Bethune
Robert VII, Lord of Bethune ( Bethune )
after 1230
2 February 1246
6 June 1251 husband's accession
8 November 1264
8 November 1264
Guy
4
Isabelle, Marchioness of Namur
Henry V, Count of Luxembourg ( Luxembourg )
1247
March or May 1264
March or May 1264
25 September 1298
25 September 1298
Guy
5
Margaret I, Countess of Burgundy
Philip V of France ( Capet )
1309
22 July 1320
17 September 1322 husband's accession
26 August 1346 husband's death
9 May 1382
Louis I
6
Margaret of Brabant
Henry II, Duke of Brabant ( Leuven )
9 February 1323
6 June 1347
6 June 1347
1368
1368
Louis II

Questions and formulas:
Question: What is the date of death of the Countess of Flanders who was born in 1309?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1=1309),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,C2:C6=1309),7))
Level: medium
Question: What is the date of death of the Countess of Flanders who was born in 1309?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,C1=1309),7))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,C2:C6=1309),7))
Level: medium
Question: Who was Margaret of Brabant's spouse?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:H1,A1="margaret of brabant"),8))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:H6,A2:A6="margaret of brabant"),8))
Level: medium