Complete the formula to sum sales by product.
=QUERY(A1:C10, "SELECT A, SUM(C) GROUP BY [1]", 1)
The GROUP BY clause groups rows by the product column, which is column A.
Complete the formula to count orders by customer.
=QUERY(A1:C20, "SELECT B, COUNT(A) GROUP BY [1]", 1)
We group by customer, which is in column B, to count orders per customer.
Fix the error in the formula to find average price by category.
=QUERY(A1:D15, "SELECT D, AVG(C) GROUP BY [1]", 1)
The category is in column D, so we group by D to get average price per category.
Fill both blanks to sum sales and count orders by region.
=QUERY(A1:E20, "SELECT [1], SUM(E), COUNT(A) GROUP BY [2]", 1)
Column B has the region names. We select and group by B to sum sales and count orders per region.
Fill all three blanks to select category, average price, and max quantity grouped by category.
=QUERY(A1:E30, "SELECT [1], AVG(C), MAX(D) GROUP BY [2] ORDER BY [3] DESC", 1)
Column B is category. We select, group by, and order by category to get average price and max quantity per category sorted descending.