A budget vs actual variance report in Excel answers one question fast: which department overspent this month, and by how much? In this tutorial you build one from raw data, with a month drop-down, status flags, a monthly trend and a dashboard. The example is Summit Ridge Supply Co., a distributor in Denver with 7 departments. In October 2026 the budget is $222,400 and the actual spend is $231,056, so the company is $8,656 (3.9%) over, and Marketing is 20.4% over budget.

⬇️ Download the Free Practice File
Practice file + solution workbook · .zip · Excel 365 or 2021
Watch the Video Tutorial
Video Overview
The video starts with the finished report and dashboard, then switches the month to July so you can see everything move. After that you build it from the practice file in seven steps: the budget lookup, the actual spend, variance and status, colors, an alert label, the monthly trend and the dashboard. At the end you check the invoices behind Marketing and find one that was entered twice.

The Practice File
The workbook has an approved budget by department and month on the Budget sheet, about 250 invoices in the tblActuals table on the Actuals sheet, and an empty report and dashboard. Pick the report month in C8 and keep the tolerance in F8 at 5%.


The catch: the budget is per month, but the invoices are per day. So the actual spend needs a date range, not an exact date match.
Step 1: Budget With a Two-Way XLOOKUP
In C11 type this and fill it down to C17:
=XLOOKUP($B11,Budget!$B$6:$B$12,XLOOKUP($C$8,Budget!$C$5:$N$5,Budget!$C$6:$N$12))
The inner XLOOKUP returns the October column and the outer one picks the department. Lock the ranges and the month cell with F4 and keep only the column locked in $B11. Sales shows $47,400.

Step 2: Actual Spend With SUMIFS
In D11:
=SUMIFS(tblActuals[Amount],tblActuals[Department],$B11,tblActuals[Date],">="&$C$8,tblActuals[Date],"<="&EOMONTH($C$8,0))
The operator sits inside quotes and is joined to the cell with &. Writing the operator and the cell together inside the quotes is the most common mistake. EOMONTH returns the last day of the month. Sales spent $48,869 in October.

Step 3: Variance, Variance % and Status
Variance in E11 and variance percent in F11:
=D11-C11
=IF(C11=0,0,E11/C11)
Status in G11:
=IF(F11>$F$8,"OVER",IF(F11<-$F$8,"UNDER","ON TRACK"))

Fill the total row with =SUM(C11:C17) for the budget and =SUM(D11:D17) for the actual, then copy the variance and status formulas into row 18.

Step 4: Status Colors
Select G11:G18, open Conditional Formatting, New Rule, Use a formula, and add three rules with white bold text: red for OVER, green for ON TRACK and blue for UNDER.
=$G11="OVER"

Step 5: The Alert Label
In the merged cell I8:
=IF(COUNTIF(G11:G17,"OVER")=0,"ALL DEPARTMENTS WITHIN BUDGET",COUNTIF(G11:G17,"OVER")&" DEPARTMENT(S) OVER BUDGET")
COUNTIF stops at row 17 so the Total row is not counted as a department. Color the label red when it ends with OVER BUDGET and green when it starts with ALL.

Step 6: Monthly Trend and Year to Date
For each month in I11:I22 use these formulas in J11, K11, L11 and M11:
=SUM(XLOOKUP(I11,Budget!$C$5:$N$5,Budget!$C$6:$N$12))
=IF(I11>$C$8,"",SUMIFS(tblActuals[Amount],tblActuals[Date],">="&I11,tblActuals[Date],"<="&EOMONTH(I11,0)))
=IF(K11="","",K11-J11)
=IF(K11="","",L11/J11)
Year to date in J23, K23, L23 and M23:
=SUMIFS(J11:J22,I11:I22,"<="&C8)
=SUM(K11:K22)
=K23-J23
=IF(J23=0,0,L23/J23)
Months after the report month stay blank. Through October the company is $25,973 (1.2%) over budget for the year.

Step 7: Build the Dashboard
The dashboard only links to the report, so there is nothing new to calculate. Link the month, the alert label, the four month cards from row 18 and the four year to date cards from row 23. Color a variance red above zero and green otherwise.

Then insert two clustered column charts: budget vs actual by department, and monthly budget vs actual for 2026.


Check the Invoices Before You Blame a Department
Filter the Actuals table to Marketing in October. Invoice INV-10245 from Brightwave Media, $6,400, is in the log twice on 10/21/2026. Delete one row and Marketing drops from 20.4% over to 1.8% under, which is ON TRACK. The month variance falls from $8,656 to $2,256 and the alert turns green.


Manual Totals or a Variance Report?
| Need | Manual totals | This variance report |
|---|---|---|
| Change the month | Filter and add again | Pick it in C8 |
| Spot overspending | Read every number | Status colors and alert |
| See the trend | Build another sheet | Monthly table and charts |
| New invoices | Extend ranges by hand | The table grows and SUMIFS picks them up |
Want a Ready-Made Version?
This free file teaches the formulas. For a ready-to-use tool, see the Budget vs Actual Dashboard in Excel. To go further with reports and dashboards, join the Excel Pivot Tables & Dashboards: Basic to Advanced course on Next Gen Templates Academy. Microsoft’s XLOOKUP documentation explains every argument.
Related Tutorials
- Budget vs Actual Tracking in Excel: Variance Formulas
- How to Use the XLOOKUP Function in Excel
- SUMIFS Function in Excel With Examples
Frequently Asked Questions
What is a budget vs actual variance report?
It puts the approved budget next to the money actually spent for each department or account, and shows the difference in dollars and as a percentage, so you can see who is over or under budget.
How do I calculate budget variance in Excel?
Subtract the budget from the actual with =D11-C11, then divide that variance by the budget with =IF(C11=0,0,E11/C11). For expenses, a positive number means overspending.
How do I add up actual spend for one month?
Use SUMIFS with two date conditions: on or after the first day of the month and on or before EOMONTH of that month, plus a condition for the department.
Why use XLOOKUP twice for the budget?
The inner XLOOKUP returns the whole column for the report month and the outer XLOOKUP picks the row for the department. Together they make a two-way lookup.
Which Excel version do I need?
XLOOKUP needs Microsoft 365 or Excel 2021 or later. SUMIFS, COUNTIF, EOMONTH and conditional formatting also work in older versions.
What does the tolerance cell do?
It sets how far a department can move before it is flagged. With 5 percent, anything above plus 5 percent is OVER, below minus 5 percent is UNDER and everything between is ON TRACK.
Is the practice file free?
Yes. The zip has the Practice and Solution workbooks for a fictional distributor, Summit Ridge Supply Co. in Denver, Colorado. All names and numbers are example data.
Download the Free Practice File
⬇️ Download the Free Practice File
Practice file + solution workbook · .zip · Excel 365 or 2021
By PK, An Excel Expert. Summit Ridge Supply Co. and all names and numbers are fictional example data for learning.
Conclusion
You built a variance report that follows one month drop-down, flags every department, shows the year to date trend and feeds a one-page dashboard. Download the free file, build along with the video and compare with the Solution workbook if you get stuck.



