Skip to main content
To generate an Excel file with formulas from an LLM, describe the sheet in a sentence and ask Doconda for format="xlsx". You get an .xlsx with real formulas (not pasted numbers), the assumptions in their own cells and every formula recalculated and checked before it is delivered, plus its PDF.

The problem in practice

  • The model tends to write the already computed result: the sheet looks right but doesn’t update when a value changes.
  • The formulas it writes can point at the wrong cells and end up as #REF! or #DIV/0!.
  • When the file is built with code, formulas aren’t calculated until someone opens it, so errors go unnoticed.
  • Newer functions like XLOOKUP or FILTER don’t work in every version of Excel.

The solution with Doconda

If your data is in a file, upload it with doconda.files.upload("sales.xlsx") and pass it in sources.

What you get back

  • An .xlsx with formulas: change an assumption and the sheet recalculates. Its PDF too.
  • status: ready, ready_with_warnings, needs_review or failed (not charged).
  • A report (documents.report(id)). Figures that don’t come from your request or your sources are removed or flagged for you to check.

FAQ

On its own the model returns text or computed values. With documents.create(format="xlsx", prompt=...) Doconda builds the file with formulas and checks that none of them errors before delivering it.
Doconda recalculates every formula until no error is left. For an Excel file you already have, review it with operation="review": formulas with errors and broken references show up in the report.
Yes. Upload it with files.upload and call documents.create(operation="review", file=...). Among other things it detects numbers stored as text and sheets too wide to print. See Review.

Keep reading