guest@barlow.build: ~/projects/financial-statements-tool
← cd .. (all projects)
guest@barlow.build:~/projects/financial-statements-tool$ cat README.md
./automation

Financial statements compiler

Built for Antler Global’s accounts work: a management report comes out of Excel, a draft set of financial statements goes back into the firm’s own Word template, and the copying between the two is now the tool’s job.

## The brief # what the client needed

Compiling a set of financial statements was a reading-and-retyping job: open the client’s Excel management report, then type each figure into the matching line of a blank Word template, year by year, for every client. Two to four hours of careful copying per set, and a mistake that still balances is almost invisible on the page.

## What I built # the solution

It runs locally and opens in a browser. It reads the management report from Excel, handling either of the two sheet layouts, and takes the company name and period from the header. Then it walks the Word template table by table to find every labelled row and its two year columns, so it works from the document that will actually be sent. The arithmetic happens in code first: sub-accounts such as receivables and prepayments are added up before the language model (an AI service) sees them, so its job is matching accounting language, not doing sums. For each line the model names the report account that feeds it and scores its confidence. A second pass applies the rules an accountant would: the balance sheet has to balance, revenue less cost of sales has to equal gross profit, required lines have to be present. When a rule fails the mapping goes back to be reworked, up to three times. Any figure that does not match its source cell to the cent is set back to unconfirmed and flagged for a person, so a wrong number fails safe. One review screen shows every line with its Excel source, both years' figures and its confidence.

  • Reads the management report from Excel directly, both sheet layouts included
  • Scans the Word template’s tables to find every labelled row and its year columns
  • Adds up sub-accounts in code, so the AI matches labels instead of doing arithmetic
  • Checks the result against accounting rules, and retries when a rule fails
  • Every figure has to trace back to its source cell, or it waits for a person
  • The mapping is saved per client, so a repeat year goes straight to generating
  • Runs on your own machine: files stay on disk, one password, and only the model call leaves it
project.json
client
Antler Global
role
Design and build
year
2026
delivered
3 weeks
stack
  • Python
  • FastAPI
  • JavaScript
  • openpyxl
  • python-docx
  • OpenRouter

## Screenshots # ls ./screenshots

fig. 01 / 02 The three steps on one screen: the Excel report, the Word template, the mapping

## The result # what changed for the client

The retyping is gone: the report is read, matched and written into the template in one pass, so the accountant’s time goes on the lines the tool is unsure of, not the ones it is sure of. Because each client’s mapping is saved, a repeat job starts at generating the document instead of at the mapping. And any figure that cannot be traced to its source cell is refused, not printed, which matters most when a wrong number would still balance.

Have a project like this in mind?
Tell me about it and I’ll reply with questions and a rough plan.
[ say hello ]
guest@barlow.build:~/projects/financial-statements-tool$

Change Colorscheme

Pick a scheme and the site re-colours immediately. Your choice is remembered on this device.

Dark
Light

Change Font

Pick a font and a text size and the site re-types immediately. Your choice is remembered on this device.

Font
Text size