Use QUERY to reshape data

Use QUERY to reshape data in Google Sheets — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I need the sales table reshaped into a compact view grouped by customer and product so the director…
I need the sales table reshaped into a compact view grouped by customer and product so the director can see monthly totals on one sheet. Create a query that pulls OrderDate, CustomerName, Product, Quantity, and Total, filters out cancelled orders, and outputs a table with Month, CustomerName, Product, Sum of Quantity, and Sum of Total sorted by Month then CustomerName. Put this on the 'Monthly Sales' sheet and leave the source untouched.

Improve — make it easier to accept

+
Before I send this to finance, make the reshaped table easy to audit. Put the filtering condition…
Before I send this to finance, make the reshaped table easy to audit. Put the filtering condition and date range at the top so a reviewer sees what was excluded, make the sums obvious, and surface any customers with duplicate name spellings or null product codes. Recommend improvements to the QUERY so a budget reviewer can trust the aggregates at a glance.

Decide — diagnose the stuck moment

+
I used QUERY to group orders into Month, CustomerName, Product and sum Total, but March's totals…

I ran a QUERY for monthly totals but numbers look low in March.

I used QUERY to group orders into Month, CustomerName, Product and sum Total, but March's totals are lower than expected. The buyer, Elena in procurement, will question missing revenue. I can share the query text and the source table but I don't know if the problem is an incorrect range, wrong date parsing, or excluded statuses. Diagnose the most likely issue and the safest change to the query to restore March totals without pulling cancelled orders.

Become — change the pattern

+
We repeatedly lose trust in the monthly aggregates after imports or when multiple people update the…

Every time we add a weekend import, our query results shift and totals change.

We repeatedly lose trust in the monthly aggregates after imports or when multiple people update the source sheet. Identify the pattern that causes these shifts and recommend one change in workflow plus one change in the query structure that will stabilize the reshaped reports and make them auditable by finance.

Next to this one

Other spreadsheet work people do in Google Sheets.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.