Table:
0
A
B
C
D
E
F
1
Name
Tenure
Courtesy title
Court Rank
Revenues
Lineage
2
Matsudaira Norisuke (松平 乗祐)
1764–1769
Izumi-no-kami (和泉守)
Lower 5th (従五位下)
60,000 koku
son of Norisato; transfer from Yamagata Domain
3
Matsudaira Norisada (松平乗完)
1769–1793
Izumi-no-kami (和泉守)
Lower 4th (従四位下)
60,000 koku
4th son of Norisuke
4
Matsudaira Norihiro (松平 乗寛)
1793–1839
Izumi-no-kami( 和泉守)
Lower 5th (従五位下)
60,000 koku
son of Norisada
5
Matsudaira Noriyasu (松平 乗全)
1839–1862
Izumi-no-kami (和泉守)
Lower 4th (従四位下)
60,000 koku
son of Norihiro
6
Matsudaira Noritsune (松平 乗秩)}
1862–1871
Izumi-no-kami (和泉守)
Lower 5th (従五位下)
60,000 koku
2nd son of Norihiro

Questions and formulas:
Question: What is the Court Rank of Son of Norihiro's Lineage?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,F1="son of norihiro"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F6,F2:F6="son of norihiro"),4))
Level: medium