Task prompt · Data

Write a Google Sheets QUERY formula

by Agent Yard Team

Filter, group and sort a sheet with one QUERY formula, explained step by step.

You'll attach

Text only

Works with

ChatGPTClaudeGeminiGrokCopilotGrok Bot

Use cases

  • Filter, group and sort a sheet with one QUERY formula, explained step by step.
  • Reuse it as often as you like: fill in the blanks (sheet name; range; headers) with new details and copy again.
  • With ChatGPT, Claude, Gemini and more, the AIs that support what this prompt needs.

How to use it

  1. Open chatgpt.com or claude.ai (or another AI listed here).
  2. Fill in the highlighted blanks ([SHEET NAME], [RANGE], [HEADERS]) below, or edit them after pasting.
  3. Copy the prompt, paste it into the chat and send.

Fill in the blanks (optional)

Prompt

Remix
I use Google Sheets. My data is in [SHEET NAME], range [RANGE], with these headers in row 1: [HEADERS].

I want to: [WHAT YOU WANT, e.g. total sales by region for 2026, highest first].

Give me the QUERY formula, explain each clause (select, where, group by, order by, label) in plain words, and show what the result will look like. Mention common errors like mixed data types in a column.
One email a week

The best new prompts and personas, nothing else.

The Weekly is presented byyour brandSponsored · open

More Data prompts

Footer partner · openThis strip runs at the foot of every page. One partner at a time.Ask about it →