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.
Steps
-
1
Click an empty cell and type =QUERY(.
-
2
Fill arguments using the on-screen helper.
-
3
Press Enter and check a known expected result.
-
4
Widen ranges or add IFERROR once the logic is correct.
Related tutorials
These videos might help you go deeper on this topic.
Search Every Function in Google Sheets
Scrape Google Maps
Search for Photos in a Google Sheet by Keyword
Make Unsplash in a Google Sheet w/ BuyMeACoffee - Part 1
Related blog posts
Written guides that go deeper on this question.
How to Use Google Sheets as a Website Database
Did you know you can use Google Apps Script to turn a Google Sheet into a free, auto-syncing database for your website? This guide shows you exactly how to set it up. You’ll prepare your spreadsheet, write a few lines of code and publish your site. Don’t worry if you’re not a developer, we’ll walk you through it. Why Use Google Sheets as a Database? For small projects, Google Sheets offers many advantages over traditional databases: * Free hosting and storage * Easy to edit data without...
Read post →Quick Google Sheets Tips
Boost productivity and streamline your workflow in Google Sheets with our quick tips and free tools. Breathe new life into your spreadsheets today.
Read post →How to Use Google Sheets for Advanced Project Management
Master Google Sheets for project management with these advanced tips. Check our free tutorials, tools, and templates for data management, task flow, and much more.
Read post →Better Sheets on YouTube
Watch matching videos from youtube.com/bettersheets.
Terms and formulas behind this
Want the full definition or how a formula works? Start here.
QUERY
QUERY runs a SQL-like statement against a range of cells and returns a new table of results. You pass a data range, a...
Open →SQL-style queries (QUERY)
The QUERY function runs a SQL-like statement against a range in your sheet. You SELECT columns, filter with WHERE, so...
Open →Google Sheets formulas
A formula is an instruction in a cell that calculates a result from other cells, ranges, or built-in functions. Every...
Open →Google Sheets formula syntax
Every formula starts with = followed by a function name and arguments in parentheses. Ranges use A1 notation, text si...
Open →Formula errors in Google Sheets
Formula errors are typed messages in cells when something prevents a valid result. Each code points to a different fa...
Open →IFERROR
IFERROR wraps another formula and returns value_if_error when the inner expression hits any error, including #N/A, #R...
Open →IFERROR()
Google Sheets IFERROR() function guide
Open →QUERY()
Google Sheets QUERY() function guide
Open →Related questions
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 →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 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 →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.
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 →Need more than a quick answer?
600+ walkthrough videos, unlimited generators, and every template. From $9/month. Practical lessons. Zero fluff.
Need one fix
Watch a free tutorial for the step-by-step version of any answer.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.