# How do I build a budget vs actual variance model in Excel with AI?

**Give the Spreadsheets agent the actuals and the budget, and ask for a variance model. Irene builds the inputs in one colour and every variance, percentage, total and status as a live formula, then checks its own arithmetic. The September model below took 3.6 minutes.**

---

## A real run: a September variance model

*A run on sample files, 29 October 2026, on DeepSeek V4.1 Flash.*

The actuals and budget were a sample export. This was the request:

> Turn this into a variance model: actual vs budget, variance and variance %, a total row, formatted.

### What the Spreadsheets agent did

1. **Read the source and kept it traceable.** It read the CSV's account, actual and budget columns and kept them on a **Source** sheet, so every figure on the model can be traced back.
2. **Built the model with formulas.** Actual and Budget are blue hardcoded inputs; Variance is `= Actual − Budget`, Variance % is `= Variance ÷ Budget`, the totals are live, and the Favourable/Unfavourable status is a formula, not a colour someone painted on.
3. **Used the house rules for a model.** The `monthly-actuals-to-variance-model` recipe and the `excel-model-conventions` skill set the layout: inputs blue, formulas black, a total row, and red or green driven off the status column.
4. **Checked its own arithmetic.** Five ties on the **Checks** tab all return TRUE: every account line is classified, revenue less costs equals the net result, the net variance ties to actual less budget, the net variance % ties to variance ÷ budget, and the budget total reconciles to the source file.
5. **Read the result rather than just printing it.** Revenue did the work: 436,500 against a 420,000 budget. Costs came in within 300 of plan, and that 300 is the sum of COGS −4,200, Marketing −1,800, Salaries +4,000, Rent flat and Other +2,300. The net result is 21,200 against a 5,000 budget.
6. **Said where the percentage misleads.** The 324% net variance is arithmetically real but not informative against a 5,000 budget denominator; the absolute numbers are the story.

### What you get

!The Variance sheet, September 2026: revenue 436,500 against a 420,000 budget, costs 415,300 against 415,000, net result 21,200 against 5,000, with favourable and unfavourable lines in green and red; made by Irene

| account | actual | budget | variance | variance % |
|---|---|---|---|---|
| Revenue | 436,500 | 420,000 | +16,500 | +3.9% |
| COGS | 121,800 | 126,000 | −4,200 | −3.3% |
| Marketing | 58,200 | 60,000 | −1,800 | −3.0% |
| Salaries | 194,000 | 190,000 | +4,000 | +2.1% |
| Rent | 24,000 | 24,000 | 0 | 0.0% |
| Other | 17,300 | 15,000 | +2,300 | +15.3% |
| Total costs | 415,300 | 415,000 | +300 | +0.1% |
| Net result | 21,200 | 5,000 | +16,200 | +324.0% |

!The Checks sheet: five TRUE results for classification, the net result, variance arithmetic, the percentage formula and the budget total against the source; made by Irene

- **Three sheets:** Variance (the model), Checks (five ties), Source (the raw columns).
- **Blue inputs, black formulas:** change an actual or a budget and the variance, %, status and totals recalculate.
- **Red and green from the status,** not painted on: the formatting follows the numbers when they change.
- **No currency symbol:** the CSV did not say which currency, so the format is `#,##0;(#,##0);"-"` and no symbol was guessed.

### What it took

| | time | steps | tokens | images |
|---|---|---|---|---|
| the variance model | 3.6 minutes | 23 | 690,747 read (642,688 cached), 12,181 written | none |

It ran on your plan's usage, like any job; [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage) has what each plan includes.

**Why it used little model work:** the repeated workbook reads came back from the cache, and the arithmetic is formulas and code rather than a model re-reasoning each cell.

### A second build, the next day

The next day the same model was built again from the same actuals in **1.5 minutes**, with five ties PASS. It used the same `monthly-actuals-to-variance-model` recipe and `excel-model-conventions` skill as the first build. Next month is a drop-in: overwrite the Actual and Budget columns and everything downstream recalculates.

## How it's different

- **Inputs are values; everything derived is a formula.** Variance, variance %, totals, status and the net result all compute, so the file still works when you change a number. A typed total where a formula belongs stops a file being a model.
- **It checks its own maths.** The five ties are read back from calculated values, not assumed: classification, net result, variance arithmetic, the percentage formula and the budget total against the source.
- **Favourable is a rule, not a colour.** Revenue over budget is favourable; cost over budget is unfavourable. The status column decides the red or green, so the colour cannot drift from the numbers.
- **The source is a sheet, not a memory.** Actual and budget stay visible next to the model, so a figure can be traced without reopening the CSV.
- **It says where a number misleads.** The 324% net variance is real, but with a 5,000 budget denominator the absolute result is what matters.

How the grid, the formula engine and the conventions work: [What can the Spreadsheets agent do, and how does it work?](https://mycelen.com/manual/reference/agents/spreadsheets)

---

## Doing it yourself

1. Open the agent switcher at the top of the sidebar and pick **Specialists → Spreadsheets**.
2. Upload the file with actuals and budget, or paste the columns.
3. Ask for a variance model: "actual vs budget, variance and variance %, a total row, formatted."
4. Read the **Checks** tab; every tie should be TRUE.
5. Next month, overwrite the Actual and Budget columns and let the formulas recalculate, or ask for a rerun.

---

## Limits

- **It needs a budget in the data.** Without one, the sheet is a spend report, not a variance; the quarter block of item purchases had no budget, so it stayed a spend report.
- **The currency has no symbol** because the source did not name one; add it if you need it.
- **A small budget makes a huge percentage.** The 324% net variance is arithmetically right and practically uninformative; read the absolute numbers.
- **CSV files open read-only.** The agent works on its copy; your original is untouched.
- **The grid shows the first 5,000 rows and 256 columns.** Bigger files still work on disk.
- **The model uses `SUMIF` on the Type column for totals,** so a new account row needs the type filled and the range extended.

---

## Questions

**How do I build a budget vs actual variance model in Excel with AI?**
Upload the actuals with a budget column and ask for a variance model. Irene builds the formula model, formats it, and checks five ties before handing it back.

**Are the totals formulas, or typed numbers?**
Formulas. Actual and budget are inputs; variance, variance %, totals, status and the net result all calculate, and the Checks tab proves the arithmetic ties.

**What makes a line favourable or unfavourable?**
Revenue above budget is favourable; cost above budget is unfavourable. The status is a formula, and the red or green formatting follows it.

**Can I reuse the model next month?**
Yes. Overwrite the Actual and Budget columns; everything downstream recalculates. The model can also be vaulted or wired as a rerun.

**Does it need my budget?**
Yes. Without a budget it can only report spend, not variance.

---

## Related

- [What can the Spreadsheets agent do, and how does it work?](https://mycelen.com/manual/reference/agents/spreadsheets)
- [How do I clean up messy Excel data with AI?](https://mycelen.com/manual/jobs/clean-messy-excel-data)
- [How do I merge Excel files and remove duplicates with AI?](https://mycelen.com/manual/jobs/merge-excel-files-and-remove-duplicates)
- [Plans, usage & shared usage](https://mycelen.com/manual/start-here/plans-and-usage)
