Budget vs Actual in Excel: Variance Formulas, Year to Date and What to Explain
Build a budget vs actual report in Excel with SUMIFS: variance in amount and percent with a sign that reads right, year to date, and which gaps to explain.
- Excel
- Formulas
- Reporting Workflows

On this page
Every month, someone puts the budget next to what happened. Then the gaps need explaining. Subtraction is the easy part. It is getting both sides onto the same lines and months, choosing a sign that reads the same for revenue and costs, and deciding which gaps deserve a sentence. A budget vs actual report in Excel needs three tables, SUMIFS for each side, one IF for the sign, and a threshold that flags the lines worth explaining. Here is the full build on a sample month, with the traps that make a variance lie.
What is a budget vs actual report?
It is a table that puts each budget line next to its actual amount for the month and the year to date, with the variance between them. "A budget variance is the difference between the budgeted or baseline amount of expense or revenue and the actual amount" AccountingTools.
Here is October 2026 for a sample online shop. The budget, the actuals and every variance in this article were computed with a script before they went in. It is an example.
| Line | Budget | Actual | Variance | Variance % |
|---|---|---|---|---|
| Revenue | 98,000 | 94,500 | -3,500 | -3.6% |
| Cost of goods sold | 39,200 | 38,100 | +1,100 | +2.8% |
| Wages | 30,000 | 31,800 | -1,800 | -6.0% |
| Rent | 6,000 | 6,000 | 0 | 0.0% |
| Marketing | 9,000 | 12,600 | -3,600 | -40.0% |
| Software | 2,000 | 2,400 | -400 | -20.0% |
| Operating profit | 11,800 | 3,600 | -8,200 | -69.5% |
-8,200 of operating profit against budget in October, from a revenue gap of only 3.6%.
A positive variance is good news and a negative one is bad news, on every line. That is a choice. Here is how to build it.
How do you set up budget and actuals in Excel?
Keep three Excel tables: Budget and Actual, each with one row per line and month, and Lines, which gives each line its type. Then a report sheet pulls both sides with SUMIFS. Never retype actuals by hand.
- Budget has Line, Month and Amount. Month holds the first day of the month, such as 1 October 2026, so every month is one date. Phase the annual budget month by month here.
- Actual has the same three columns. It comes from the general ledger export, with each account mapped to a budget line and every amount turned positive. The SUMIFS guide shows the mapping and the date traps that come with it.
- Lines has Line and Type, Revenue or Cost.
On the report sheet, put the report month in B1 (1 October 2026), the lines in column A and their type in column B. Then budget in C and actual in D:
=SUMIFS(Budget[Amount],Budget[Line],$A5,Budget[Month],$B$1)The actual is the same formula on the Actual table. SUMIFS "adds all of its arguments that meet multiple criteria" Microsoft Support, so it adds only the rows for that line and that month. It returns 0, not an error, when a line has no rows, and that quiet zero is the reason the unmapped-accounts check further down matters so much.
How do you calculate the variance so the sign makes sense?
Make favorable variances positive on every line: actual minus budget for revenue, budget minus actual for costs. One IF on the line's type does it, and the whole column then reads the same way.
=IF($B5="Revenue",D5-C5,C5-D5)This follows the usual definition. The variance is favorable "when the actual revenue is higher than the budget", and for costs "when the actual expense is less than the budget" AccountingTools. Plain actual minus budget would show the marketing overspend as +3,600, and a reader scanning for minus signs would skip the worst line of the month.
For the percentage, divide by the absolute budget and catch a zero budget:
=IFERROR(E5/ABS(C5),"")ABS keeps the sign right if a budget is negative, such as a refund line. IFERROR returns an empty cell instead of #DIV/0! when a line had no budget Microsoft Support. A percentage of nothing means nothing.
The operating profit row is revenue minus every cost, on both the budget and the actual side. Its variance is then plain actual minus budget, -8,200. It equals the sum of the line variances, -3,500 + 1,100 - 1,800 + 0 - 3,600 - 400, which is a good check that every line has the right sign.
How do you add year to date?
Change the month test in SUMIFS to "on or before the report month", from the start of the year. The same variance formulas then work on the year-to-date columns without any change.
=SUMIFS(Budget[Amount],Budget[Line],$A5,Budget[Month],">="&DATE(YEAR($B$1),1,1),Budget[Month],"<="&$B$1)| Line | Budget YTD | Actual YTD | Variance | Variance % |
|---|---|---|---|---|
| Revenue | 854,000 | 856,000 | +2,000 | +0.2% |
| Cost of goods sold | 341,600 | 346,700 | -5,100 | -1.5% |
| Wages | 300,000 | 302,300 | -2,300 | -0.8% |
| Rent | 60,000 | 60,000 | 0 | 0.0% |
| Marketing | 67,000 | 72,000 | -5,000 | -7.5% |
| Software | 20,000 | 21,500 | -1,500 | -7.5% |
| Operating profit | 65,400 | 53,500 | -11,900 | -18.2% |
Two views, two stories. October revenue is 3.6% short, but the year is 2,000 ahead. Software is 20% over in October and only 7.5% over for the year. Report both, and comment on the month only when the year to date confirms the trend. For a cumulative column next to each month, see running total and year to date in Excel.
Which variances are worth explaining?
The ones that are large in both amount and percentage. Set two thresholds, such as 1,000 and 10%, and flag a line only when it crosses both. That keeps small lines with big percentages, and big lines with tiny percentages, out of the commentary.
=IF(AND(ABS(E5)>=1000,ABS(F5)>=10%),"Explain","")In October, only marketing gets flagged. Software is 20% over, but on 400. Revenue is 3,500 short, but 3.6% of the budget. Pick the thresholds once with whoever reads the report, and keep them every month.
To color the variances, select the variance column and create a rule under HomeConditional FormattingManage RulesNew Rule, with "Use a formula to determine which cells to format" and the formula Microsoft Support. Because favorable is always positive, one red rule covers revenue and costs alike.
Read cost variances against volume before you write. Cost of goods sold shows +1,100 favorable, but only because revenue fell. The gross margin rate barely moved, 59.7% against 60.0% budgeted. That is not a saving.
What makes a budget vs actual report wrong?
Four mistakes cause most wrong variances: a budget split evenly over 12 months, accounts missing from the mapping, invoices booked after the close, and percentages on a zero budget. Each one has a quick check.
- The budget divided by 12. The shop's annual revenue budget is 1,080,000. Split evenly, October gets 90,000 and the actual shows +4,500, 5.0% ahead. Phased with the season, October's budget is 98,000 and the same actual is 3,500 short. Same month, opposite story.
- Unmapped accounts. A new account in the ledger has no budget line, so SUMIFS silently leaves it out. Check that the actual column adds up to the total of the export for the month. A gap means an account to map.
- Late invoices. A supplier bill booked in November for October work makes October look good and November bad. Compare once the month is closed, or note the open items.
- A zero or tiny budget. A line budgeted at 100 and spent at 600 shows +500%. The threshold on the amount keeps it out of the commentary.
The same checks matter when the report grows to several sites or brands. The percentage change formulas in percentage change in Excel apply to month over month comparisons of the actuals.
Where does Glow Reports fit?
The workbook above works and is worth building once. The monthly work is in refreshing the actuals: exporting the ledger, mapping new accounts, checking totals, then writing the commentary.
With Glow Reports, you upload the budget file and the accounting export, CSV or Excel, and ask in plain language for budget against actual by line for the month and the year to date. The AI writes the SQL, builds the charts and drafts the text. The SQL sits under each figure, so you can check the sign convention and the account mapping, and edit the query when they need to change. Reports export to PDF and stay in the workspace. The free plan gives 300 credits once, and a report costs 100 credits.
Common questions
Is a variance actual minus budget or budget minus actual?
Either, if the report says which. The most readable choice makes favorable variances positive: actual minus budget for revenue, budget minus actual for costs. Then every negative number is a problem, on every line.
What is a good variance threshold?
No standard exists. A common start is an amount and a percentage together, such as 1,000 and 10% for a small organization, scaled to the size of the budget. Agree on it with the readers and keep it stable from month to month.
Does this work in Google Sheets?
Yes. SUMIFS, IF, ABS and IFERROR work the same way in Google Sheets Google Docs Editors Help. Google Sheets has no Excel tables, so use plain ranges such as instead of .
Should I compare against last year as well?
It helps when the budget is old or was built on weak assumptions. A budget variance can come from the budget itself: it "is frequently caused by bad assumptions or improper budgeting" AccountingTools. Last year's actuals show whether the business moved or the budget was off.
I am a product engineer and the founder of Glow Reports. I spent more than 6 years building products in tech, data and cybersecurity, for large groups, startups and SMEs. In most organizations I saw data treated as a technical topic, when it drives business decisions. I built the reporting tool I was looking for, so the people who run small and mid-sized organizations can read their own numbers without a data team.
More from El Mehdi BenaneUpload your budget and your accounting export to Glow Reports and get the variance by line, with the SQL behind each figure.


