On this page
In a company of a few hundred people, the books usually close in spreadsheets built around the accounting system. Somewhere in finance, someone wrote the macros (programs inside the workbook) or Power Query steps (Excel's data-shaping tool) that pull the bank file, match it against the ledger and lay out the month-end pack, and the close has leaned on them for years.
When the push to use AI in finance arrives, those files are the first thing people point at, because they look like the way the work used to be done. Qvery's agents read what the macro cannot; the macro still makes every match.
If a macro does a fixed finance job correctly, keep it running that job. On the same kind of file it gives the same answer every time, and anyone who can read it can see how it got there. An AI model asked to redo the same matching each month can answer differently on the same file, and it can't show you the rule it used.
Put AI to work around the macro instead: on the inputs it can't read, like PDF statements and remittances (the payment notices customers send saying which invoices a transfer covers) that arrive in an email, and on writing down and testing a macro that usually one person understands.
Models are good at writing and explaining fixed rules: a formula, a query, a short script. Let them write the rule, and let the rule do the arithmetic every month.
This stops holding when the macro breaks every close, nobody left can read it, or the volume has outgrown spreadsheets altogether. Then rebuild it, as something that still gives the same answer every run, with AI helping to write it.
A Working Macro Gives the Same Answer Every Run
A macro is a written rule. The same bank file goes in, the same matches come out, and the steps sit in the workbook where anyone who reads VBA, the language macros are written in, or Power Query can follow them.
It can also be wrong without anyone noticing, but on the same kind of input it's wrong the same way every month, so a bad step, once found and fixed, stays fixed.
That's what "working" means here: a macro that has been checked against real closes, not one that has merely run.
A language model works differently. It predicts its answer, and the same request on the same data can come back different.
For a finance team, the difference decides how much checking the work needs.
A tested macro still gets reviewed, but the reviewer checks its exceptions and its totals, not every match. A model that decides the matches afresh each month needs its matches checked too, because last month's correct answer says little about this month's, and checking AI work has a cost of its own.
Vlad ShvetsPartner @ QveryIf a job needs the same answer every month, it needs a rule. AI is a fine way to write that rule: it reads the old macro, explains each step and drafts the formula or the query. It is a poor way to be the rule, because a model that decides the matches again every close hands your team a fresh set of answers to check every month.
What the Macro Already Saves
Put numbers on one job, as an illustration you'd swap for your own: a monthly bank reconciliation that took about a day and a half by hand, call it 12 working hours, and around an hour with the macro, with the time priced at what an accountant costs with benefits, about $65 an hour.
The macro gives back about 11 hours a run. That's about $716 of an accountant's time each month, roughly $8,600 a year, from one file. Do the same count for every file your close runs on.
| The job | Hours a run | At an accountant's pay with benefits |
|---|---|---|
| By hand (about a day and a half) | 12 | about $781 |
| With the macro | about 1 | about $65 |
| What the macro gives back | about 11 | about $716 |
| The most a rebuild of the matching can still save | about 1 | about $65 |
Ask what number a rebuild would improve. If nobody can name one, the macro stays.
If there are hours left to find in a job like this, look around the macro, not in it: at the inputs someone reshapes by hand before it can run.
Our accounting playbook prices where those hours sit in a close: customer payments waiting for invoice matches, group companies whose entries disagree and close plans chased by hand.
The Agents Read What Your Macro Can't
A macro breaks when its input stops looking like the table it was written for: a bank that sends a PDF statement instead of a CSV, the plain data file it was written for, a customer who pays three invoices with one transfer and says which ones in an email, a supplier that changes the layout of its export.
Then someone retypes or reshapes the input by hand before the macro can run, or the macro reads it wrong.
Reading is what AI models are good at.
So the agents' job is to turn the mess into the table your macro already reads, and nothing more: rules for the steps that never change, a model for the reading.

Say three accountants retype about 600 documents a month at six minutes each: at $65.10 an hour with benefits (about $135,400 a year), each costs $6.51. With the agents reading, an accountant spends a minute and a half on each, $2.13 a document: 540 hours back and $31,554 a year after about $300 a month to run them, and each $10,000 of build is recovered in 3.8 months.
Cost Per Close Document ROI Calculator
What Each Close Document Costs You To Retype, And With The Agents
Saved Per Year
$31,554
540 hours handed back, after $3,600 a year to run it
- Hours Handed Back
- 540 hours a year
- Agent Running Cost (Estimate)
- $300 a month
- Payback Per $10,000 Of Build
- 3.8 months
On these numbers, each document costs $2.13 instead of $6.51, the agent saves $31,554 a year after its own running cost, and every $10,000 of the build is earned back in 3.8 months.
The agents read each bank statement, remittance email or supplier file as it lands in the finance inbox or a shared folder, and write its rows in exactly the layout your macro already takes. A formula, not the model, then checks that the rows add up to the totals printed on the document: a statement's opening balance plus its transactions equals its closing balance.
Whoever runs the close works the short list of documents that didn't tie out (whose rows don't add up to the figures printed on them), with the reason for each, then runs the macro as before. The macro still makes every match.
The totals check catches a missing or extra amount. It can't catch two errors that cancel out, or a right amount with a wrong invoice number or date.
A wrong invoice number with no open invoice behind it lands on the exception list your team already works. One that happens to fit a different open invoice is why someone samples each month's extracted rows against the documents, a far smaller review than checking every match.
The Real Risk in a Macro Is That One Person Understands It
When only one person understands a macro, the arithmetic isn't the risk. The knowledge sits in one head, and the month it breaks after that person has left, the close goes back to being done by hand.
That's the second job I'd give AI. A model is good at reading code and explaining it. It can walk through a VBA module line by line, write down what each step does and why, build a test that compares the macro's output with last month's results, and rewrite a fragile macro as Power Query or a short script more people can maintain.
With the write-up, two people can learn to run it. Keep the file where every change is logged, which is also what an auditor will ask about.
Piotr BabelPartner @ QveryWhen we write down a macro, the test matters more than the write-up. We run the old macro and its documented rebuild on last month's inputs and compare every output row. Where they differ, the difference is either a bug the macro has carried for years or a rule nobody wrote down, and both go to whoever owns the close before anything in the file changes.
But the AI Inside Excel Can Run the Whole Reconciliation Now
Part of that is right. The assistants built into spreadsheets now plan and carry out multi-step work inside a workbook. Microsoft describes Copilot in Excel as able to "plan, run, and verify results directly in your workbook", and says it's best for complex, multi-step tasks.
Judge any AI tool for the close by what it leaves in the file, not by what it does while you watch.
If the result is formulas, a query or a macro your team can rerun next month without the assistant, you've used AI to build the tool. If it decides the matches again every month, you're checking every run.
Engineered repeatability doesn't change that. A model that gives the same answer every month still can't show you the rule behind a match; its explanation is another output, not the rule it ran.
Last Close Is Where the Agents Start
A macro that already closes the books has earned its place.
We need one folder where the documents land, your macro's input layout written down, and last month's documents beside the rows your team typed. The agents read last close's documents into that layout for your team to compare with its own rows.
Two weeks after access the first version reads one input as it arrives, and each week the controller sees the retyping hours saved and the mismatches caught before the macro ran.
Frequently asked questions
When is Power Query better than an AI agent?
When the input arrives in the same shape every time and the steps never change. Power Query repeats those steps exactly. An agent earns its place where the input varies and has to be read, such as PDF statements or emails. If your volume has outgrown spreadsheets, look at your accounting system's reconciliation tools first.
Can Copilot in Excel take over our macros?
For a job still done entirely by hand, it may be the fastest way to automate it. For a job a macro already runs, judge it by what it leaves in the file: formulas your team can rerun without the assistant are a tool, and answers decided again every month are a new review.
How do we check an AI reconciliation?
Don't let the AI decide the matches. Have it extract rows, check with a formula that they add up to each document's printed totals, leave the matching to a fixed rule, and sample the extracted rows each month. Before it goes live, run it on last month's inputs and compare with last month's close.
What should AI do in the month-end close?
The reading and the retyping: pulling transactions out of statements that don't arrive as clean files, reading which invoices a remittance email covers, and drafting variance notes for a person to approve. It can also document every macro the close runs on, so more than one person can maintain them.
What does Qvery build around a close macro?
Custom AI agents that read the statements, remittances and supplier files the macro cannot, check the rows against each document's printed totals, and hand the macro a clean table. We measure them in hours of retyping saved and errors stopped before the match.
When should finance teams rebuild an Excel macro?
Rebuild when the macro breaks every close, nobody left can read it, or the volume has outgrown spreadsheets. Build something that still gives the same answer every run. AI can help write that replacement.
Why can AI give different answers on the same reconciliation?
A language model predicts its answer rather than following a written rule, so the same request on the same file can come back different. Last month's correct match says little about this month's, so every match it makes needs checking.
How much time does a reconciliation macro save?
In this post's illustration, a monthly bank reconciliation takes about 12 hours by hand and about 1 with the macro. At about $65 an hour, that is roughly $716 a month and $8,600 a year from one file. Count every file your close runs on.
How much can AI agents save on retyping month-end documents?
Say three accountants retype about 600 documents a month at six minutes each, $6.51 a document of their time. With the agents reading, a document costs $2.13, and they get back 540 hours and $31,554 a year after about $300 a month to run them.
What is a remittance, and why can't a macro read it?
A remittance is a payment notice identifying which invoices a transfer covers. The post describes a customer paying three invoices with one transfer and identifying them in an email. A macro expects a fixed table, so someone retypes or reshapes that input before it runs.
Can a document pass a totals check and still be wrong?
Yes. Two errors can cancel out, and a right amount can carry a wrong invoice number or date. A wrong number with no open invoice behind it lands on the exception list; one that fits another open invoice is why someone samples the rows each month.
Where should a close macro and its write-up live?
In a file where every change is logged, which is also what an auditor will ask about. With a written explanation of what each step does, two people can learn to run it, so the close no longer depends on one head.
Can an AI tool explain the rule behind its matches?
No. Even a model that gives the same answer every month cannot show you the rule behind a match; its explanation is another output, not the rule it ran. A formula, query or macro it writes for you can be read and rerun.
Who checks the documents that don't tie out?
Whoever runs the close. They get a short list of documents whose rows don't add up to the figures printed on them, each with its reason, fix those, then run the macro as before. The macro still makes every match.
Do we have to replace Excel to use AI agents in the close?
No. The agents write their rows into the workbook layout your macro already reads, and the macro, the workbook and the accounting system stay as they are. The close changes only where someone used to retype a document.