---
title: "QUERY practice in Google Sheets | PracticeExcel"
description: "Practice the Google Sheets QUERY function: select, where, group by, order by and limit in a live grid."
canonical_url: "https://practiceexcelonline.com/sheets/practice/query"
locale: en
meta:
  "og:description": "Practice the Google Sheets QUERY function: select, where, group by, order by and limit in a live grid."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_QUERY%2Bpractice%2Bin%2BGoogle%2BSheets%2Cdescription_~UHJhY3RpY2UgdGhlIEdvb2dsZSBTaGVldHMgUVVFUlkgZnVuY3Rpb246IHNlbGVjdCwgd2hlcmUsIGdyb3VwIGJ5LCBvcmRlciBieSBhbmQgbGltaXQgaW4gYSBsaXZlIGdyaWQu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJSZXAiLCJBbW91bnQiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJOb3J0aCIsIkFubiIsIjEyMCIsIiJdfSx7Im4iOjMsImNlbGxzIjpbIlNvdXRoIiwiQm8iLCI4MCIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIk5vcnRoIiwiQ3kiLCIyMDAiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJXZXN0IiwiRGkiLCI1MCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlNvdXRoIiwiRWQiLCIxNTAiLCIiXX1dLCJ0YXJnZXQiOlswLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvcXVlcnki%2Cs_3yI5jgAhUUSTfujU.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "QUERY practice in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_QUERY%2Bpractice%2Bin%2BGoogle%2BSheets%2Cdescription_~UHJhY3RpY2UgdGhlIEdvb2dsZSBTaGVldHMgUVVFUlkgZnVuY3Rpb246IHNlbGVjdCwgd2hlcmUsIGdyb3VwIGJ5LCBvcmRlciBieSBhbmQgbGltaXQgaW4gYSBsaXZlIGdyaWQu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJSZXAiLCJBbW91bnQiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJOb3J0aCIsIkFubiIsIjEyMCIsIiJdfSx7Im4iOjMsImNlbGxzIjpbIlNvdXRoIiwiQm8iLCI4MCIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIk5vcnRoIiwiQ3kiLCIyMDAiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJXZXN0IiwiRGkiLCI1MCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlNvdXRoIiwiRWQiLCIxNTAiLCIiXX1dLCJ0YXJnZXQiOlswLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvcXVlcnki%2Cs_3yI5jgAhUUSTfujU.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **QUERY practice in Google Sheets**

Ask a table questions in a language much like SQL: pick columns, keep the rows you want, total per group and sort, all with one formula.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/practice/query/query-select-columns)

QUERY(

1. [**1****Pick columns with select**In E1, use QUERY to show the Rep and Amount columns of A1:C6.](https://practiceexcelonline.com/sheets/practice/query/query-select-columns)
2. [**2****Keep rows with where****Premium**In E1, use QUERY to show the Rep and Amount of every sale over 100.](https://practiceexcelonline.com/sheets/practice/query/query-where-number)
3. [**3****Match text in where****Premium**In E1, use QUERY to show the Rep and Amount of every sale in the North region.](https://practiceexcelonline.com/sheets/practice/query/query-where-text)
4. [**4****Totals per group with group by****Premium**In E1, use QUERY to total the Amount for each region.](https://practiceexcelonline.com/sheets/practice/query/query-group-by-sum)
5. [**5****Top results with order by and limit****Premium**In E1, use QUERY to show the Rep and Amount of the two biggest sales, biggest first.](https://practiceexcelonline.com/sheets/practice/query/query-order-by-limit)

## **Functions in this topic**

- [**QUERY**](https://practiceexcelonline.com/sheets/functions/query)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/sheets/practice/query#webpage","description":"Practice the Google Sheets QUERY function: select, where, group by, order by and limit in a live grid.","name":"QUERY practice in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/query","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/query#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/query"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/query#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"QUERY practice in Google Sheets","position":3}]},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
