format="xlsx". You get an .xlsx whose figures are formulas, not pasted numbers, with each assumption in its
own cell. Every formula is recalculated before delivery and the file arrives with no formula errors, plus its PDF.
Why LLM spreadsheets break
- The model tends to write the computed result, so the sheet looks right but doesn’t update when an input changes.
- Its formulas can point at the wrong cells and end up as
#REF!or#DIV/0!. - A file built with a library such as openpyxl has no calculated values until someone opens it, so errors go unnoticed.
- Newer functions like
XLOOKUPorFILTERdon’t evaluate in every spreadsheet program.
How Doconda builds the sheet
- Formulas, not results: totals and projections are formulas, so the sheet recalculates when you change an input.
- Assumptions in their own cells: each input (starting customers, growth, price) sits in a labelled cell that the formulas reference.
- Recalculated before delivery: every formula is calculated and the file isn’t delivered while any formula errors.
- Portable functions: lookups use
INDEX/MATCHinstead ofXLOOKUP,XMATCH,SORT,FILTER,UNIQUEorSEQUENCE. - Checked figures: numbers that don’t come from your request or your sources are corrected.
Create the file
create() waits until the document finishes, so the script prints ready and saves forecast.xlsx.
doconda.documents.download(id, "pdf") gives its PDF.
If your data is in a file, upload it and pass its ID in sources: doconda.files.upload("sales.xlsx") in Python,
doconda.files.upload(await readFile("sales.xlsx"), "sales.xlsx") in TypeScript. Up to 5 documents can go in
sources, together with prompt.
A document that can’t be delivered ends in failed and isn’t charged. For quality levels and prices, see
create.
FAQ
How do I make ChatGPT create an Excel file with formulas instead of values?
How do I make ChatGPT create an Excel file with formulas instead of values?
On its own, the model returns text or computed values. Pass the request to
documents.create(format="xlsx", prompt=...): Doconda writes the formulas and recalculates them before delivering
the file.How do I avoid #REF! and #DIV/0! errors in an AI-generated Excel file?
How do I avoid #REF! and #DIV/0! errors in an AI-generated Excel file?
Doconda recalculates every formula before delivery and doesn’t deliver the file while any of them errors.
Can I change an Excel file I already have?
Can I change an Excel file I already have?
Yes. Upload it with
files.upload and call documents.create(operation="edit", file=..., prompt=...) with the
change in a sentence. Changes use real formulas and the rest of the file stays the same. See edit.Related
- Create: formats, sources and quality levels.
- Edit: change an Excel file you already have.
- Python SDK and TypeScript SDK.
- Doconda in your agent.
- Examples on GitHub.