✏️Prompts

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.

A one-page report with simple bar shapes on a desk beside a laptop and a coffee cup

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.

DateAccountDescriptionAmount
10/036010 SalariesPayroll run 10/03$21,400
10/066510 SoftwareHelp desk software, annual renewal$9,600
10/096810 Office suppliesSupplies order$380
10/126520 TelephonePhone and contact center lines$1,150
10/176010 SalariesPayroll run 10/17$21,400
10/206610 Temporary laborStaffing agency invoice$4,800
10/246710 TravelCustomer site visit$1,320
10/316010 SalariesPayroll run 10/31$21,400
10/316020 Payroll taxes and benefitsOctober 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

Prompt
The "GL" tab has the October general ledger detail for department 400, Customer Service. The "Budget" tab has the October budget for the same department by account. Build a new "BvA Oct" tab with one row per account: account name in plain words, budget, actual, dollar variance and percent variance. Use SUMIFS formulas that point at the GL and Budget tabs, not typed values, and add a total row. Then, below the table, list only the accounts where actual is more than $1,000 and more than 10% over or under budget, or where there is spend against a zero budget. For each one, show the GL lines that make up the variance, write one plain sentence on what the lines show, and write one question for the department head. Do not explain a variance the data does not explain; write "Question for owner" instead. Flag anything that looks like a timing or coding issue for finance to review, but do not reclassify anything. Do not change the GL or Budget tabs.

After: the report the department head gets

AccountBudgetActualVariance
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.

  1. 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.
  2. 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.
  3. 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

  1. 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.
  2. Total budget equals the approved budget. Check $59,700 against the budget file of record, not a working copy.
  3. Every variance line traces to GL lines. Click through the cell references for each item on the list.
  4. Read each sentence as the department head would. Remove anything that sounds like an accusation or a guess.
  5. 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

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

  1. Save the prompt in a shared document with your threshold and department list, so every month's reports read the same way.
  2. Run it for one department first and ask the department head whether they read it. Change the format before you roll it out.
  3. 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