Table:
0
A
B
C
D
E
1
Name
Service
Rank
Place of action
Unit
2
Smedley Butler Category:Articles with hCards
Marine Corps
Major
Fort Riviere , Haiti
2nd Marines
3
William R. Button Category:Articles with hCards
Marine Corps
Corporal
near Grande Riviere, Haiti
7th Marines
4
Daniel Daly Category:Articles with hCards
Marine Corps
Gunnery Sergeant
near Fort-Liberté , Haiti
15th Company, 2nd Marines
5
Herman H. Hanneken Category:Articles with hCards
Marine Corps
Sergeant
near Grande Riviere, Haiti
7th Marines
6
Ross L. Iams Category:Articles with hCards
Marine Corps
Sergeant
Fort Riviere , Haiti
5th Company, 2nd Marines
7
Samuel Marguiles Category:Articles with hCards
Marine Corps
Private
Fort Riviere , Haiti
23rd Company, 2nd Marines
8
Edward A. Ostermann Category:Articles with hCards
Marine Corps
First Lieutenant
near Fort-Liberté , Haiti
15th Company, 2nd Marines
9
William P. Upshur Category:Articles with hCards
Marine Corps
Captain
near Fort-Liberté , Haiti
15th Company, 2nd Marines

Questions and formulas:
Question: Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="sergeant")*(E1="5th company, 2nd marines")),4))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(C2:C9="sergeant")*(E2:E9="5th company, 2nd marines")),4))
Level: medium
Question: Name the service for 7th marines rank of sergeant
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(E1="7th marines")*(C1="sergeant")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E9,(E2:E9="7th marines")*(C2:C9="sergeant")),2))
Level: medium