Sheetsdrill

Level 4: Arrays and FILTER Exercise 39 of 50 Pro

Top region with QUERY

A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.

The task

Use QUERY to total revenue by region, sort the totals from largest to smallest and keep one row. Return just the region name in F1 (INDEX helps).

What this exercise teaches

group by collapses rows, order by ranks the groups and limit keeps the top. That is a full report in one formula.

A hint if you get stuck

select A, sum(C) group by A order by sum(C) desc limit 1. The result has a header row, so the name is in row 2, column 1.

Functions used: INDEX, QUERY

This exercise is part of Pro

Pro unlocks all 50 exercises, with worked solutions and progress saved to your account. The free exercises work without an account.

You create a free account first, so Pro is attached to it.

Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.

Start with the free exercises

More exercises in Arrays and FILTER