How to do query in Google Sheets

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to do query.

Steps

  1. 1

    Click an empty cell and type =QUERY(.

  2. 2

    Fill arguments using the on-screen helper.

  3. 3

    Press Enter and check a known expected result.

  4. 4

    Widen ranges or add IFERROR once the logic is correct.

Related tutorials

These videos might help you go deeper on this topic.

Watch more tutorials
Search Every Function in Google Sheets

Search Every Function in Google Sheets

Built a useful tool to filter Google Sheet formulas based on keywords.
Search for Photos in a Google Sheet by Keyword

Search for Photos in a Google Sheet by Keyword

Add one more feature to our Photo search inside of Google Sheets.
Scrape Google Maps

Scrape Google Maps

📍 Want the finished tool? Local Lead Finder searches every part of a cit...
How do I reference a different spreadsheet in Apps Script?

How do I reference a different spreadsheet in Apps Script?

I'll show you how to get text from one spreadsheet file to another with ...
Embed a Number in a Website from a Google Sheet

Embed a Number in a Website from a Google Sheet

Ever wanted to display some data from a google sheet on your site? Witho...
5 Ways To Use Google Sheets for Advanced Project Management

5 Ways To Use Google Sheets for Advanced Project Management

Here are 5 advanced ways to manage projects inside of Google Sheets Mana...

Related blog posts

Written guides that go deeper on this question.

Browse the blog

Better Sheets on YouTube

Watch matching videos from youtube.com/bettersheets.

Search channel

Terms and formulas behind this

Want the full definition or how a formula works? Start here.

Related questions

What does query do in Google Sheets

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to query do.

Get the answer →

How to use query Google Sheets

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to use query google sheets.

Get the answer →

How to use query in Google Sheets

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to use query.

Get the answer →

How does query work in Google Sheets

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to how does query work.

Get the answer →

Does Google Sheets have power query

QUERY is a built-in Google Sheets function. Type =QUERY( in a cell and follow the argument hints, or open the formula help from the function name. Start with a small example range, confirm the result, then expand. See the linked formula guide on this page for syntax and examples related to does google sheets have power query.

Get the answer →
Ads keep the free stuff free. Members browse ad-free — log in or see pricing.
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.