AI for Departmental Budget-to-Actual Reports: From GL Export to a Page a Department Head Reads
A worked example that turns a raw general ledger export into a one-page budget-to-actual report a department head can act on, with the prompt and the tie-outs.

Most department heads do not read the budget-to-actual report finance sends them. It arrives as forty rows of account numbers, and the three lines that matter are buried among the ones that do not. An assistant working in Excel can rebuild that report from the same general ledger export in a few minutes: plain account names, only the variances above your threshold, and one question per variance for the person who owns it. The numbers still come from the ledger, and finance still ties them out before the report goes anywhere.
What you need
- A general ledger export for one department and one month: date, account number, account name, description, department code and amount. Export at account level. Payroll accounts should carry totals per pay run, not one line per employee.
- The department's budget for the same month, by account, on its own tab.
- Your variance threshold. The example below uses variances over $1,000 and over 10% of budget, or any spend on an account with no budget.
- An assistant that works on the workbook. Claude in Excel is available on Claude's Pro, Max, Team and Enterprise plans. Copilot in Excel can edit a workbook directly on Windows, Mac and the web, and Microsoft notes that it may not be included in every Microsoft 365 subscription or may be limited by your organization's settings. Check with IT which one your company has approved.
Before: the GL export
The example is the customer service department (department 400) at a distributor with about 120 staff, for October. These are sample figures.
| Date | Account | Description | Amount |
|---|---|---|---|
| 10/03 | 6010 Salaries | Payroll run 10/03 | $21,400 |
| 10/06 | 6510 Software | Help desk software, annual renewal | $9,600 |
| 10/09 | 6810 Office supplies | Supplies order | $380 |
| 10/12 | 6520 Telephone | Phone and contact center lines | $1,150 |
| 10/17 | 6010 Salaries | Payroll run 10/17 | $21,400 |
| 10/20 | 6610 Temporary labor | Staffing agency invoice | $4,800 |
| 10/24 | 6710 Travel | Customer site visit | $1,320 |
| 10/31 | 6010 Salaries | Payroll run 10/31 | $21,400 |
| 10/31 | 6020 Payroll taxes and benefits | October allocation | $13,900 |
The October budget for the department is $59,700: salaries $42,800, payroll taxes and benefits $13,500, software $800, telephone $1,200, temporary labor $0, travel $1,000 and office supplies $400. Actual spend is $95,350, so the department is $35,650 over budget. On its own, that number tells the department head nothing useful.
The prompt
After: the report the department head gets
| Account | Budget | Actual | Variance |
|---|---|---|---|
| Salaries | $42,800 | $64,200 | +$21,400 (50%) |
| Payroll taxes and benefits | $13,500 | $13,900 | +$400 (3%) |
| Software | $800 | $9,600 | +$8,800 (1,100%) |
| Telephone | $1,200 | $1,150 | −$50 (4%) |
| Temporary labor | $0 | $4,800 | +$4,800 (no budget) |
| Travel | $1,000 | $1,320 | +$320 (32%) |
| Office supplies | $400 | $380 | −$20 (5%) |
| Total | $59,700 | $95,350 | +$35,650 (60%) |
Below the table, the assistant writes three items, because only three accounts cross the threshold. Travel is 32% over but only $320, so it stays off the list.
- Salaries, $21,400 over. October had three biweekly payroll runs and the budget assumes two. This is timing, not overspending. Flagged for finance: consider spreading the budget by pay run rather than by month.
- Software, $8,800 over. The full annual help desk renewal of $9,600 was expensed in October, against a monthly budget of $800. Flagged for finance: this looks like a prepaid that should be spread over twelve months, which would bring October to $800.
- Temporary labor, $4,800 with no budget. One staffing agency invoice. Question for owner: what was the temporary cover for, and will it continue into November?
The department head now has one real question to answer instead of a $35,650 problem to explain. Finance has two items to fix: a budget phasing issue and a likely coding error. If the controller agrees the renewal is a prepaid, October software falls to $800 and the department is $26,850 over budget, and $21,400 of that is the third payroll.
Tie out before you send it
- Total actual equals the ledger. $95,350 should match department 400's October total in the trial balance or departmental P&L. If it does not, the export was filtered wrongly.
- Total budget equals the approved budget. Check $59,700 against the budget file of record, not a working copy.
- Every variance line traces to GL lines. Click through the cell references for each item on the list.
- Read each sentence as the department head would. Remove anything that sounds like an accusation or a guess.
- Decide the flagged items yourself. Whether the renewal is a prepaid is an accounting decision for the controller. Make any correcting entry in the ledger, then rerun the report.
Where this breaks
Arithmetic. A model can write a plausible total that is wrong. Ask for formulas you can trace, and follow the checks in our guide to checking AI's numbers.
Explanations it cannot know. The assistant can see that a staffing invoice exists. It cannot know why the department needed temporary cover. That answer comes from the department head.
Payroll detail. Keep employee-level salary data out of the export. Anthropic's documentation says the content Claude reads from a workbook is sent to Anthropic and is not recommended for highly sensitive data without proper controls, so check your AI policy before you open payroll files with any assistant.
Allocations. If benefits or rent are allocated to departments, the assistant will report the allocation as spend. Say so in the report, so the department head does not chase a number they do not control.
Make it a monthly routine
- Save the prompt in a shared document with your threshold and department list, so every month's reports read the same way.
- Run it for one department first and ask the department head whether they read it. Change the format before you roll it out.
- Add year to date in the second month, once the monthly version is trusted.
For more close tasks to hand to an assistant in Excel, see Claude in Excel for month-end close and Copilot in Excel for finance teams.
Free playbook
The 15-Day Close: Benchmark and Playbook
What mid-market finance teams actually do to close in 10 to 15 days, and where the controller's hours go.
Related Articles