Table:
0
A
B
C
D
E
1
Name
Tenure
Courtesy title
Court Rank
revenues
2
Kuze Shigeyuki ( 久世重之 ? )
1705–1720
Yamato-no-kami
Lower 4th (従四位下)
50,000 koku
3
Kuze Teruyuki ( 久世暉之 ? )
1720–1748
Sanuki-no-kami/Jiju
Lower 5th (従五位下)
50,000-->60,000 koku
4
Kuze Hiroaki ( 久世広明 ? )
1748–1785
Yamato-no-kami
Lower 5th (従五位下)
60,000-->58,000 koku
5
Kuze Hiroyasu ( 久世広明 ? )
1785–1817
Yamato-no-kami
Lower 5th (従五位下)
58,000-->68,000 koku
6
Kuze Hirotaka ( 久世広運 ? )
1817–1830
Nagato-no-kami
Lower 5th (従五位下)
68,000 koku
7
Kuze Hirochika ( 久世広周 ? )
1830–1862
Yamato-no-kami
Lower 4th (従四位下)
68,000 koku
8
Kuze Hirofumi ( 久世広文 ? )
1862–1868
Oki-no-kami
Lower 5th (従五位下)
68,000-->48,000 koku
9
Kuze Hironari ( 久世広業 ? )
1868–1871
x
Lower 5th (従五位下)
48,000 koku

Questions and formulas:
Question: What is the tenure of the person with revenues of 60,000-->58,000 koku?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,E1="60,000-->58,000 koku"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,E2:E9="60,000-->58,000 koku"),2))
Level: medium
Question: What is the court rank of the person with a courtesy title of nagato-no-kami?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="nagato-no-kami"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="nagato-no-kami"),4))
Level: medium
Question: What is the name of the person with a courtesy title of sanuki-no-kami/jiju?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,C1="sanuki-no-kami/jiju"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,C2:C9="sanuki-no-kami/jiju"),1))
Level: medium