What is where in Google Sheets?

Where is part of the SQL-like QUERY function language in Google Sheets. QUERY reads a range with SELECT, WHERE, GROUP BY, ORDER BY, and LABEL clauses instead of nested spreadsheet functions.

When to use it

Use QUERY clauses when you want SQL-style filtering, grouping, or labels on a table in one formula.

When to skip it

Skip QUERY when FILTER, SORT, and UNIQUE already express the logic with less string syntax to maintain.

Better Sheets resources

Related Tutorials

Watch how WHERE works

Browse more tutorials
The First Thing I Do When Starting a Google Sheet

The First Thing I Do When Starting a Google Sheet

Are you tired of the default look of your Google Sheets? In this video, ...
Convert Google Sheets into a REST API

Convert Google Sheets into a REST API

How to use Google Sheets as a database by turning it into a REST API wit...
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 Man...
Google Sheets Easter Eggs Beyond PRIDE

Google Sheets Easter Eggs Beyond PRIDE

Going beyond PRIDE, to show you some undocumented google sheets hacks th...
Get Every Editor on Every Google File I Own

Get Every Editor on Every Google File I Own

Get every editor if you're looking for the sheets and documents you've s...
10 Google Sheets I Wish Someone Would Make

10 Google Sheets I Wish Someone Would Make

if you're looking for ideas on what sheets to make I think this video is...

Related blog posts

Guides that explain WHERE in more depth.

Browse the blog

Related glossary terms

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 query string with SELECT, WHERE, ORDER BY, and optional headers. It is the fastest way to filter, sort, group, and pivot sheet data without helper columns.

Read guide →

SQL-style queries (QUERY)

The QUERY function runs a SQL-like statement against a range in your sheet. You SELECT columns, filter with WHERE, sort with ORDER BY, and aggregate with GROUP BY without building many helper columns. It is the closest native option to a small in-sheet database query.

Read guide →

FILTER

FILTER returns only the rows from a range that meet one or more conditions. Conditions are boolean arrays the same height as the data. FILTER spills results automatically, so it replaced many INDEX/SMALL helper-column patterns for live subsets.

Read guide →

query string

Query String is part of the SQL-like QUERY function language in Google Sheets. QUERY reads a range with SELECT, WHERE, GROUP BY, ORDER BY, and LABEL clauses instead of nested spreadsheet functions.

Read guide →

SELECT

Select is part of the SQL-like QUERY function language in Google Sheets. QUERY reads a range with SELECT, WHERE, GROUP BY, ORDER BY, and LABEL clauses instead of nested spreadsheet functions.

Read guide →

GROUP BY

Group By is part of the SQL-like QUERY function language in Google Sheets. QUERY reads a range with SELECT, WHERE, GROUP BY, ORDER BY, and LABEL clauses instead of nested spreadsheet functions.

Read guide →

Done reading about WHERE?

Membership unlocks 637+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.