May 26, 2026 How to Use the QUERY Function in Google Sheets (with Examples, 2026) Use the QUERY function in Google Sheets to filter, sort, and summarize data with SQL-like syntax: SELECT, WHERE, ORDER BY, GROUP BY, LABEL, and pulling from another sheet. Google Sheets Query Function Spreadsheets