Table:
0
A
B
C
D
E
F
G
1
Monarch
Heir
Status
Relationship to Monarch
Became heir; reason
Ceased to be heir; reason
Next in succession
2
Wareru
Hkun Law
Heir presumptive
brother
December 1287 brother founded dynasty
January 1307 succeeded
Yan Maw La Mon 1307, brother
3
Hkun Law
Yan Maw La Mon
Heir presumptive
brother
January 1307 brother succeeded
1307 killed in action
Saw Zein 13??–1323, nephew
4
Saw O
Saw Zein
Heir apparent
brother
13?? brother succeeded
September 1323 succeeded
Binnya U 13??–1348, son
5
Binnya E Law
Binnya U
Heir apparent
nephew
13?? uncle succeeded
1348 succeeded
Bawnganmon 1370s?–1383, son
6
Binnya U
Bawnganmon
Heir apparent
son
1370s? father succeeded
23 January 1384 brother succeeded
Bawlawkyantaw 1383–1390, nephew
7
Razadarit
Bawlawkyantaw
Heir presumptive
son
23 January 1384 father succeeded
December 1390 executed
Binnya Dhammaraza 14??–1422, brother
8
Razadarit
Binnya Dhammaraza
Heir apparent
son
14?? brother died
1421 succeeded
Binnya Ran I 1421–1424, brother
9
Binnya Dhammaraza
Binnya Ran I
Heir apparent
brother
1421 brother succeeded
1424 succeeded
Binnya Waru 14??–1446, nephew
10
Binnya Ran I
Binnya Waru
Heir apparent
nephew adopted son
14?? uncle succeeded
1446 succeeded
Dhammazedi 1460–1471, brother-in-law
11
Shin Sawbu
Dhammazedi
Heir apparent
son-in-law
1460 mother-in-law succeeded
1471 succeeded
Binnya Ran II 1471–1492, son
12
Dhammazedi
Binnya Ran II
Heir apparent
son
1483 father succeeded
1492 succeeded
Takayutpi 15??–1526, son

Questions and formulas:
Question: Who was the heir when the monarch was Wareru?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,A1="Wareru"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,A2:A12="Wareru"),2))
Level: medium
Question: What is the number of monarchs that had Yan Maw la Mon as the heir?
Formula: ROWS(UNIQUE(FILTER(A1, B1="Yan Maw La Mon")))
Formula2: ROWS(UNIQUE(FILTER(A2:A12, B2:B12="Yan Maw La Mon")))
Level: medium
Question: Who was the monarch whose status was heir presumptive and a relationship to the monarch of son?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:G1,(C1="Heir presumptive")*(D1="son")),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:G12,(C2:C12="Heir presumptive")*(D2:D12="son")),1))
Level: medium