← Back to library

Have AI write Excel macros for your reconciliations

u/Broseidon132 on r/Accounting, a staff accountant, says the biggest AI win is not dumping whole workbooks into chat but having it write Excel macros for reconciliations they already understand. They review and own every macro before it touches live files.

  • OutcomeDescribe a repetitive reconciliation step in plain English and get a VBA macro that does it the same way every month.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditu/Broseidon132 on r/Accounting
View original
Works with
ChatGPTClaudeGeminiGrokMicrosoft Copilot

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 24, 2026

When should you use it?

  • The same Excel steps repeat every month
  • Reconciliations pull from downloaded query files
  • You can describe the steps but can't code

Not for: Companies whose IT controls forbid unapproved macros; Posting journal entries without review

What do you need, and what do you get?

You need

  • A plain-English description of the steps
  • Header names in your files
  • File naming pattern

You get

  • A VBA macro with comments and error messages
  • Test instructions

How does it work, step by step?

  1. Describe one taskOne repeatable step at a time, with the exact header names.
  2. Ask for dynamic lookupsFind columns by header text, never by fixed letters or rows.
  3. Test on a copyRun it on last month's files and compare to the finished rec.
  4. Keep it documentedStore the macro with a short note on what it does and who owns it.

The prompt

Our own prompt, inspired by u/Broseidon132 on r/Accounting and written to work in ChatGPT, Claude, Gemini and others. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Write an Excel VBA macro for this task: {task_description}.
Files: the workbook it runs in is {target_workbook}; source files are in {folder} and their names start with {file_prefix}.
Rules:
- Find columns by header text (e.g. {header_names}), never by fixed letters or row numbers.
- Open the newest matching source file hidden, copy only what's needed, close it.
- Before changing anything, show a message naming the file it will use and the row count, and let me cancel.
- If something is missing, stop with a plain message saying what and where.
- Add comments explaining each block, and a DRY_RUN switch that reports without writing.
Then give me 3 test steps to run on a copy.

Inspired by u/Broseidon132 on r/Accounting: How I use AI as a staff accountant. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Public companies and firms with strict IT controls may need approval before running macros; commenters raised this first.
  • A macro that silently picks the wrong file is worse than none; have it show which file it opened.

Our take

This is one of the most practical AI posts we found from a working accountant, because it uses AI to write deterministic code rather than to do the work directly. That makes the output reviewable and repeatable, which matters in finance. The two habits worth copying are finding columns by header name so a shifted column doesn't break the macro, and having the macro report clearly why it stopped. The top reply is the caution we'd repeat: if you work at a public company or under strict IT general controls, get approval before automating a reconciliation, and keep the macro under change control. Our prompt bakes in dynamic lookups, a visible log of which files were opened, and a dry-run mode. In our test with a sample bank reconciliation and a query download whose columns had moved, the macro it wrote found the Amount column by header, appended the rows, refreshed the pivot and stopped cleanly when the download file was missing.

Where the time goes back: Steps that took the same manual effort every close run in seconds, and ten similar journals take about as long as one.

FAQ

Why macros instead of letting AI do the work in the sheet?
A macro is fixed code: it does the same thing every time, runs offline and can be reviewed. The author found this more reliable and cheaper than asking an AI to process each workbook.
I can't code. Is this realistic?
The author couldn't code before starting. The key is describing the task precisely and testing on copies.

Source and credit

Inspired by u/Broseidon132 on r/Accounting. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
How I use AI as a staff accountant
Creator
u/Broseidon132 on r/Accounting
Published on
Reddit
Original date
Jul 19, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
ChatGPT
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Dynamic header lookup, visible file confirmation, clean stop on missing input.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingPrompt✓ AI dry run

Check a financial model for contradictions before investors

Give an AI assistant every tab of a startup or small-business financial model and have it hunt for places where the tabs disagree with each other, such as unit economics that don't tie to revenue, marketing budgets that don't fit acquisition cost targets, or terms that differ between sheets, plus any figures that look missing.

Credit: Ronak Shah

Minutes
Finance & AccountingPrompt✓ AI dry run

Translate variance analysis into plain English

Turn a budget-versus-actual report into a short read that tells non-finance managers what moved and why.

Credit: OpenAI Academy

Minutes
Finance & AccountingWorkflow✓ AI dry run

Pull a tax audit document packet from your books

Connect an assistant to your accounting, file storage and email so it can assemble the invoices, receipts and summaries an auditor asks for.

Credit: gtwy (@Gtwy)

An afternoon+