Structured formula builder
Task, table context, target range, and function hint keep the request specific.
Google Sheets QUERY formula generator
Describe the rows and columns you want, paste sample headers, and get a QUERY formula with notes for select clauses, where filters, sorting, grouping, and labels.
Request
Guest mode includes 2 tries. Founding access is $9 for 500 runs per month in this browser.
Purpose-built inputs
Task, table context, target range, and function hint keep the request specific.
Generate a new formula, translate a pasted one, or diagnose common syntax issues.
Compatibility notes call out modern functions and platform-specific behavior.
The result is formatted for scanning and placed next to a copy button.
Common formulas
Build percent of total, percent change, discount, markup, tax, tip, and completion-rate formulas.
Scan common lookup, logic, text, date, and summary formulas with examples.
Create due dates, workday counts, month-end dates, date differences, and overdue checks.
Return matching rows for status, region, date, text, and threshold conditions.
Split, extract, join, trim, clean, and replace text from messy imported cells.
Block bad IDs, duplicate values, missing fields, and invalid entries with custom TRUE/FALSE rules.
Build QUERY formulas for filtering, selecting, sorting, grouping, and labeling Sheets data.
Create margin, average price, variance, and ratio formulas that use pivot source field names.
Highlight overdue rows, missing values, duplicates, and status changes with custom TRUE/FALSE rules.
Return matching values with separate lookup and return ranges.
Build flexible lookup formulas for left lookups, two-way lookups, and older Excel files.
Total rows that match status, date, category, customer, or region rules.
Count rows across multiple text, number, and date conditions.
Use case
Build Google Sheets QUERY formulas for report-style views that select, filter, sort, group, or relabel columns from a source table.
Use this page when Google Sheets needs a report-like output from a source table, such as open deals by region, late tasks by owner, grouped totals by month, or selected columns sorted by a metric.
Do not use QUERY just to return a few matching rows when FILTER is simpler and easier for the team to edit. QUERY is strongest when the output needs SQL-like select, where, order by, group by, or label clauses.
For deals in A1:D500 with headers in row 1, a QUERY formula can show only open West-region deals above 5000 and sort the highest value first.
=QUERY(A1:D500,"select A, B, C, D where B = 'West' and C = 'Open' and D > 5000 order by D desc",1)
The formula reads the source table, keeps the requested columns, filters to West open deals over 5000, sorts by value descending, and treats the first row as headers.
Upgrade when the work piles up
Try twice as a guest. Free accounts get 3 runs per week plus a monthly product email. Upgrade when formula work becomes a recurring part of the week.
500 formula runs per month in this browser, early access pricing, and account access as it ships. Stripe redirects you back after payment.
Upgrade with Stripe