Table:
0
A
B
C
D
E
F
1
Direction
Number
Trigram
24 Mountains
Bearing / Degrees
Nature
2
South
9
Li 离 ☲
Bing 丙 Wu 午 Ding 丁
157.6 - 172.5 172.6 - 187.5 187.6 - 202.5
Yang Yin Yin
3
Southwest
2
Kun 坤 ☷
Wei 未 Kun 坤 Shen 申
202.6 - 217.5 217.6 - 232.5 232.6 - 247.5
Yin Yang Yang
4
West
7
Dui 兑 ☱
Geng 庚 You 酉 Xin 辛
247.6 - 262.5 262.6 - 277.5 277.6 - 292.5
Yang Yin Yin
5
Northwest
6
Qian 乾 ☰
Xu 戌 Qian 乾 Hai 亥
292.6 - 307.5 307.6 - 322.5 322.6 - 337.5
Yin Yang Yang
6
North
1
Kan 坎 ☵
Ren 壬 Zi 子 Gui 癸
337.6 - 352.5 352.6 - 7.5 7.6 - 22.5
Yang Yin Yin
7
Northeast
8
Gen 艮 ☶
Chou 丑 Gen 艮 Yin 寅
22.6 - 37.5 37.6 - 52.5 52.6 - 67.5
Yin Yang Yang
8
East
3
Zhen 震 ☳
Jia 甲 Mao 卯 Yi 乙
67.6 - 82.5 82.6 - 97.5 97.6 - 112.5
Yang Yin Yin

Questions and formulas:
Question: What is every direction with 24 mountains as Wei 未 Kun 坤 Shen 申?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,D1="Wei 未 Kun 坤 Shen 申"),1))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,D2:D8="Wei 未 Kun 坤 Shen 申"),1))
Level: medium
Question: How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?
Formula: ROWS(UNIQUE(FILTER(D1, E1="67.6 - 82.5 82.6 - 97.5 97.6 - 112.5")))
Formula2: ROWS(UNIQUE(FILTER(D2:D8, E2:E8="67.6 - 82.5 82.6 - 97.5 97.6 - 112.5")))
Level: medium
Question: What is every trigram when direction is Northwest?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Northwest"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Northwest"),3))
Level: medium
Question: What are all values for 24 mountains when direction is Northeast?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:F1,A1="Northeast"),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:F8,A2:A8="Northeast"),4))
Level: medium