Spreadsheet AI Agent
A spreadsheet AI agent reads a workbook, decides which columns matter, runs the calculations and hands back a result you can check. The hard part is not the model — it is the brief. This page builds that brief with you, field by field, then runs it in the ToCharts agent.
Write the brief
What do you need
Metrics
Deliverables
Guardrails
Your prompt
Analyze the spreadsheet I attached. The data is sales orders. Scope - Group by: Monthly - Metrics: Net revenue, Period-over-period growth - Break down by: Region, Product Output - A summary table with period-over-period change - Charts for the headline metric and the biggest breakdown - Export: XLSX workbook Guardrails - Reconcile totals against source rows - Show the formula behind every number - Never guess currency, timezone or units
Starter spreadsheet
The columns and formulas this brief implies. Download it as a CSV and open it in Excel, Numbers or Google Sheets.
| Column | Type | Formula draft |
|---|---|---|
| Month | Text | — |
| Net revenue | Number | =SUMIFS(Orders[Net],Orders[Period],$A2) |
| Period-over-period growth | Percent | =IF(ROW()=2,"",IFERROR(B3/B2-1,"")) |
The prompt and the starter file are generated in your browser. Nothing is sent anywhere until you open the workspace.
What a spreadsheet AI agent does
- Reads the file: sheet names, header rows, column types, merged cells and the junk rows above the real header.
- Decides the scope: which rows count, which period, which breakdown.
- Computes: totals, period-over-period change, share, rank, ratios — as formulas, not as prose.
- Checks itself: do the parts sum to the total, do the period boundaries line up, did any row get dropped by a filter.
- Produces artefacts you can keep: an XLSX with the working, charts, and a report you can hand to someone else.
Why briefs fail
"Analyse this sheet" gives the agent no way to be wrong, which means it also gives it no way to be right. Almost every disappointing run traces back to one of four missing pieces: the subject of the analysis, the period, the breakdown and the definition of the metric.
- Subject: net sales, gross sales or booked amount? They are three different columns and three different answers.
- Period: calendar months, fiscal months or trailing 30 days — and is the current partial period included?
- Breakdown: by region, by product, by both? A cross-tab and two separate tables are not the same deliverable.
- Checks: say explicitly that the breakdown must reconcile to the total, and the agent will report the gap instead of hiding it.
How to use this page
- Fill in the task, subject, period, breakdown and metrics below. The prompt on the right rewrites itself as you go.
- Tick the outputs you actually need — an XLSX with formulas is worth far more than a pasted paragraph.
- Tick the reconciliation checks. This is what separates a checkable answer from a plausible one.
- Copy the prompt, or download the column schema as CSV to use as a template.
- Open the agent workspace, upload your file and paste the brief.
Frequently asked questions
What is a spreadsheet AI agent?
Software that takes a spreadsheet and a goal, plans the steps, executes them against the real cells and returns both the answer and the working behind it — rather than describing in prose what it would do.
How is it different from a chat assistant with a file attached?
An agent runs code against the actual sheet and keeps the artefacts: the formulas, the intermediate tables, the charts, the exported workbook. A chat answer gives you a number you cannot trace back.
Does it need a clean file?
No, but it needs an honest brief about the mess. Say where the real header row is, which sheets to skip and how blanks should be treated, and far more runs land first time.
Can I check the result?
That is the point. Ask for the formulas and the reconciliation checks in the brief — the ToCharts agent returns the calculation behind every number so you can audit it before you forward it.
Run this brief in the agent
Open the workspace, upload your spreadsheet and paste the brief you just built.