Table:
0
A
B
C
D
1
account id
customer id
account name
other account details
2
1
6
338
Regular
3
2
14
562
VIP
4
3
9
162
VIP
5
4
12
38
Regular
6
5
13
858
Regular
7
6
12
262
Regular
8
7
9
621
Regular
9
8
8
381
Regular
10
9
9
546
Regular
11
10
4
767
VIP
12
11
4
22
VIP
13
12
2
866
VIP
14
13
10
234
VIP
15
14
9
557
VIP
16
15
4
725
VIP

Questions and formulas:
Question: How many accounts do we have?
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Count the number of accounts.
Formula: SUM(A1)
Formula2: SUM(A2:A16)
Level: easy
Question: Show ids, customer ids, names for all accounts.
Formula: CHOOSE({1,2,3},A1,B1,C1)
Formula2: CHOOSE({1,2,3},A2:A16,B2:B16,C2:C16)
Level: easy
Question: What are the account ids, customer ids, and account names for all the accounts?
Formula: CHOOSE({1,2,3},A1,B1,C1)
Formula2: CHOOSE({1,2,3},A2:A16,B2:B16,C2:C16)
Level: easy
Question: Show other account details for account with name 338.
Formula: FILTER(D1,C1="338")
Formula2: FILTER(D2:D16,C2:C16="338")
Level: easy
Question: What are the other account details for the account with the name 338?
Formula: FILTER(D1,C1="338")
Formula2: FILTER(D2:D16,C2:C16="338")
Level: easy
Question: Show all customer ids and the number of accounts for each customer.
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: How many accounts are there for each customer id?
Formula: SUMMARIZE(B1,SUMX(A1))
Formula2: SUMMARIZE(B2:B16,SUMX(A2:A16))
Level: easy
Question: Show the customer id and number of accounts with most accounts.
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: What is the customer id with the most accounts, and how many accounts does this person have?
Formula: TAKE(SORT(SUMMARIZE(B1,SUMX(A1)), 2, -1), 1)
Formula2: TAKE(SORT(SUMMARIZE(B2:B16,SUMX(A2:A16)), 2, -1), 1)
Level: hard
Question: How many customers have an account?
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy
Question: Count the number of customers who hold an account.
Formula: ROWS(UNIQUE(B1))
Formula2: ROWS(UNIQUE(B2:B16))
Level: easy