Google Sheets QUERY Function
QUERY is the SQL engine inside Google Sheets — one formula that filters, groups, sorts, aggregates, and pivots in a single expression. This hub gathers the complete pillar, the function reference, the tips-and-tricks post, and related comparisons that make QUERY the single most powerful function in the Sheets universe.
QUERY Complete Guide
SELECT, WHERE, GROUP BY, ORDER BY, LIMIT, LABEL, FORMAT, PIVOT — every clause with real examples. The full QUERY dialect from first principles.
Function ReferenceQUERY Function Reference
Compact syntax reference — arguments, return types, common errors, and quick-copy snippets for the most-used patterns.
Tips & Tricks
Comparisons
Related Clusters
QUERY without memorizing the syntax
QUERY is powerful but its syntax rewards frequent use — the dates, the Col1 vs A, the quote escaping. Sheets Wizard generates the exact QUERY formula from plain-English intent ("sum revenue by region for Q1, sorted descending"), with proper syntax and formatting.
Install Sheets Wizard →