Table:
0
A
B
C
D
E
1
code
name
price
manufacturer code
products
2
1
Hard drive
240
5
3
2
Memory
120
6
4
3
ZIP drive
150
4
5
4
Floppy disk
5
6
6
5
Monitor
240
1
7
6
DVD drive
180
2
8
7
CD drive
90
2
9
8
Printer
270
3
10
9
Toner cartridge
66
3
11
10
DVD burner
180
2
12
11
DVD drive
150
3

Questions and formulas:
Question: Select the names of all the products in the store.
Formula: B1
Formula2: B2:B12
Level: easy
Question: What are the names of all products?
Formula: B1
Formula2: B2:B12
Level: easy
Question: Select the names and the prices of all the products in the store.
Formula: CHOOSE({1,2},B1,C1)
Formula2: CHOOSE({1,2},B2:B12,C2:C12)
Level: easy
Question: What are the names and prices of all products in the store?
Formula: CHOOSE({1,2},B1,C1)
Formula2: CHOOSE({1,2},B2:B12,C2:C12)
Level: easy
Question: Select the name of the products with a price less than or equal to $200.
Formula: FILTER(B1,C1<=200)
Formula2: FILTER(B2:B12,C2:C12<=200)
Level: easy
Question: What are the names of products with price at most 200?
Formula: FILTER(B1,C1<=200)
Formula2: FILTER(B2:B12,C2:C12<=200)
Level: easy
Question: Find all information of all the products with a price between $60 and $120.
Formula: FILTER(A1,(C1>=60)*(C1<=120))
Formula2: FILTER(A2:A12,(C2:C12>=60)*(C2:C12<=120))
Level: easy
Question: What is all the information of all the products that have a price between 60 and 120?
Formula: FILTER(A1,(C1>=60)*(C1<=120))
Formula2: FILTER(A2:A12,(C2:C12>=60)*(C2:C12<=120))
Level: easy
Question: Compute the average price of all the products.
Formula: AVERAGE(C1)
Formula2: AVERAGE(C2:C12)
Level: easy
Question: What is the average price across all products?
Formula: AVERAGE(C1)
Formula2: AVERAGE(C2:C12)
Level: easy
Question: Compute the average price of all products with manufacturer code equal to 2.
Formula: AVERAGE(FILTER(C1,D1=2))
Formula2: AVERAGE(FILTER(C2:C12,D2:D12=2))
Level: easy
Question: What is the average price of products with manufacturer codes equal to 2?
Formula: AVERAGE(FILTER(C1,D1=2))
Formula2: AVERAGE(FILTER(C2:C12,D2:D12=2))
Level: easy
Question: Compute the number of products with a price larger than or equal to $180.
Formula: ROWS(UNIQUE(LET(a,E1,b,E1,c,INDEX(LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)>=180)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Formula2: ROWS(UNIQUE(LET(a,E2:E12,b,E2:E12,c,INDEX(LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,CHOOSECOLS(query1,2)>=180)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Level: hard
Question: How many products have prices of at least 180?
Formula: ROWS(UNIQUE(LET(a,E1,b,E1,c,INDEX(LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,CHOOSECOLS(query1,2)>=180)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Formula2: ROWS(UNIQUE(LET(a,E2:E12,b,E2:E12,c,INDEX(LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,CHOOSECOLS(query1,2)>=180)),,1),FILTER(a,NOT(ISNA(XLOOKUP(b,c,c)))))))
Level: hard
Question: Select the code of the product that is cheapest in each product category.
Formula: LET(a,HSTACK(A1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(C1)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A12,E2:E12),b,E2:E12,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E12,SUMX(C2:C12)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: What are the codes and names of the cheapest products in each category?
Formula: LET(a,HSTACK(A1,B1,E1),b,E1,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E1,SUMX(C1)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Formula2: LET(a,HSTACK(A2:A12,B2:B12,E2:E12),b,E2:E12,c,CHOOSECOLS(TAKE(SORT(SUMMARIZE(E2:E12,SUMX(C2:C12)), 2, 1), 1),1),UNIQUE(FILTER(a,NOT(ISNA(XLOOKUP(b,c,c))))))
Level: hard
Question: Show all names and products
Formula: UNIQUE(HSTACK(B1,E1))
Formula2: UNIQUE(HSTACK(B2:B12,E2:E12))
Level: easy
Question: Show all names and products
Formula: UNIQUE(HSTACK(B1,E1))
Formula2: UNIQUE(HSTACK(B2:B12,E2:E12))
Level: easy
Question: Which products are priced between 60 and 120?
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Formula2: LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Level: hard
Question: Products priced between 60 and 120
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Formula2: LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Level: hard
Question: What are names and products?
Formula: UNIQUE(HSTACK(B1,E1))
Formula2: UNIQUE(HSTACK(B2:B12,E2:E12))
Level: easy
Question: Any names and products?
Formula: UNIQUE(HSTACK(B1,E1))
Formula2: UNIQUE(HSTACK(B2:B12,E2:E12))
Level: easy
Question: What are products with price between 60 and 120?
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Formula2: LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Level: hard
Question: the products with price between 60 and 120
Formula: LET(query1,SUMMARIZE(E1,SUMX(C1)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Formula2: LET(query1,SUMMARIZE(E2:E12,SUMX(C2:C12)),FILTER(query1,(CHOOSECOLS(query1,2)<=120)*(CHOOSECOLS(query1,2)>=60)))
Level: hard