Table:
0
A
B
C
D
E
F
G
H
1
Rank
Company
Headquarters
Industry
Sales (billion $)
Profits (billion $)
Assets (billion $)
Market Value (billion $)
2
1
Citigroup
USA
Banking
146.56
21.54
1,884.32
247.42
3
2
Bank of America
USA
Banking
116.57
21.13
1,459.74
226.61
4
3
HSBC
UK
Banking
121.51
16.63
1,860.76
202.29
5
4
General Electric
USA
Conglomerate
163.39
20.83
697.24
358.98
6
5
JPMorgan Chase
USA
Banking
99.30
14.44
1,351.52
170.97
7
6
American International Group
USA
Insurance
113.19
14.01
979.41
174.47
8
7
ExxonMobil
USA
Oil and gas
335.09
39.50
223.95
410.65
9
8
Royal Dutch Shell
Netherlands
Oil and gas
318.85
25.44
232.31
208.25
10
9
UBS
Switzerland
Diversified Financials
105.59
9.78
1,776.89
116.84
11
10
ING Group
Netherlands
Diversified Financials
153.44
9.65
1,615.05
93.99
12
11
BP
UK
Oil and gas
265.91
22.29
217.60
198.14
13
12
Toyota
Japan
Automotive
179.02
11.68
243.60
217.69
14
13
The Royal Bank of Scotland
UK
Banking
77.41
12.51
1,705.35
124.13
15
14
BNP Paribas
France
Banking
89.16
9.64
1,898.19
97.03
16
15
Allianz
Germany
Insurance
125.33
8.81
1,380.88
87.22
17
16
Berkshire Hathaway
USA
Diversified Financials
98.54
11.02
248.44
163.79
18
17
Walmart
USA
Retailing
348.65
11.29
151.19
201.36
19
18
Barclays
UK
Banking
67.71
8.95
1,949.17
94.79
20
19
Chevron
USA
Oil and gas
195.34
17.14
132.63
149.37

Questions and formulas:
Question: How many headquarters are there listed for HSBC?
Formula: ROWS(UNIQUE(FILTER(C1, B1="HSBC")))
Formula2: ROWS(UNIQUE(FILTER(C2:C20, B2:B20="HSBC")))
Level: medium
Question: What is the market value in billions when the assets totaled 1,380.88?
Formula: SUM(FILTER(H1, G1=1380.88))
Formula2: SUM(FILTER(H2:H20, G2:G20=1380.88))
Level: easy
Question: What is the highest rank of a company in the oil and gas industry headquartered in Netherlands?
Formula: MAX(FILTER(A1, (D1="Oil and gas")*(C1="Netherlands")))
Formula2: MAX(FILTER(A2:A20, (D2:D20="Oil and gas")*(C2:C20="Netherlands")))
Level: easy
Question: What is the lowest rank of a company with 248.44 billions of dollars in assets?
Formula: MIN(FILTER(A1, G1=248.44))
Formula2: MIN(FILTER(A2:A20, G2:G20=248.44))
Level: easy
Question: In what industry was the company that had 89.16 billions of dollars in sales?
Formula: LET(query1,SUMMARIZE(D1,SUMX(E1)),FILTER(query1,CHOOSECOLS(query1,2)=89.16))
Formula2: LET(query1,SUMMARIZE(D2:D20,SUMX(E2:E20)),FILTER(query1,CHOOSECOLS(query1,2)=89.16))
Level: hard