Case 1: Budget vs actual with variance analysis
The monthly report by cost type lands on someone's desk every month. You build it so that a single cell switches it to any month, then split a revenue variance into volume and price.
In short: actuals with SUMIFS from the postings, budget with INDEX and MATCH from a month matrix, variance as =B4-C4 and =D4/C4, a flag with IF(AND(ABS(…)…)). The month lives in one cell only. The basics are on Excel for finance; this case is about the whole report.
The situation
It is the third working day of April. The finance director of an office furniture manufacturer wants the March cost report by noon tomorrow: actual against budget by cost type, with only the lines flagged that need discussing in the management meeting. As every month, the ledger export has arrived, and the budget has been sitting in a table with twelve month columns since January.
The workbook sheet by sheet
- Postings: the export with month (as a number), cost type and amount. A cost type can appear several times in a month, for example staff costs split into wages and employer contributions.
- Budget: one row per cost type, January to December in columns B to M. The cost types are in a different order than in the report.
- Report: the parameters at the top (month in B1, percent threshold in D1, amount threshold in F1), and below them the table you fill.
Task 1: the monthly report
Task Monthly report by cost type. B1 holds the reporting month as a number. In B4:B8, pull this month's actual costs from the postings, and in C4:C8 the budget for the month from the Budget sheet. In D4:D8 work out the variance as an amount (actual minus budget) and in E4:E8 as a percentage of budget. F4:F8 shows "check" when the variance, up or down, breaks both thresholds (percent in D1 and amount in F1), otherwise "ok". B9:D9 are the totals. You write each formula once at the top; it is filled down or across.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Month (no.) | 3 | Threshold % | 0.1 | Threshold amt | 3000 | |
| 2 | |||||||
| 3 | Cost type | Actual | Budget | Variance | Variance % | Status | |
| 4 | Staff | ||||||
| 5 | Materials | ||||||
| 6 | Energy | ||||||
| 7 | Maintenance | ||||||
| 8 | Marketing | ||||||
| 9 | Total | ||||||
| 10 | |||||||
| 11 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Cost type | Amount | |
| 2 | 2 | Staff | 179800 | |
| 3 | 2 | Materials | 93400 | |
| 4 | 2 | Energy | 15800 | |
| 5 | 3 | Materials | 61200 | |
| 6 | 3 | Staff | 142300 | |
| 7 | 3 | Maintenance | 6400 | |
| 8 | 3 | Energy | 15100 | |
| 9 | 3 | Materials | 47100 | |
| 10 | 3 | Marketing | 8600 | |
| 11 | 3 | Staff | 44100 | |
| 12 | 3 | Maintenance | 4500 | |
| 13 | 4 | Staff | 140900 | |
| 14 | 4 | Marketing | 11300 | |
| 15 | 4 | Materials | 52300 | |
| 16 | 4 | Energy | 16900 | |
| 17 | 4 | Maintenance | 7900 | |
| 18 | 4 | Materials | 47500 | |
| 19 | 4 | Staff | 40300 | |
| 20 | 4 | Marketing | 8500 | |
| 21 | ||||
| 22 |
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Cost type | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
| 2 | Materials | 91000 | 94000 | 96000 | 101000 | 103000 | 99000 | 88000 | 84000 | 104000 | 107000 | 105000 | 92000 | |
| 3 | Marketing | 9000 | 9000 | 12000 | 15000 | 15000 | 11000 | 7000 | 7000 | 16000 | 18000 | 14000 | 9000 | |
| 4 | Staff | 178000 | 178000 | 182000 | 182000 | 182000 | 186000 | 186000 | 186000 | 186000 | 186000 | 186000 | 186000 | |
| 5 | Maintenance | 8200 | 8200 | 8200 | 8200 | 8200 | 8200 | 14500 | 14500 | 8200 | 8200 | 8200 | 8200 | |
| 6 | Energy | 16800 | 15900 | 14500 | 13200 | 11800 | 10900 | 10600 | 10800 | 11900 | 13400 | 15200 | 16900 | |
| 7 | ||||||||||||||
| 8 |
Step 1: actuals from the postings
In B4 you add up every posting with the cost type in A4 and the month in B1: =SUMIFS(Postings!$C$2:$C$20,Postings!$B$2:$B$20,A4,Postings!$A$2:$A$20,$B$1). The ranges and B1 are fixed; A4 stays relative so the formula picks up the next cost type when filled down. The SUMIFS lesson has the details.
Step 2: budget from the month matrix
The budget has two dimensions: cost types in rows, months in columns. =INDEX(Budget!$B$2:$M$6,MATCH(A4,Budget!$A$2:$A$6,0),$B$1) finds the cost type's row and uses the month number as the column. That works because the matrix starts with January, so column 3 is March. If your budget starts elsewhere, look up the column with MATCH too.
Step 3: variance and flag
D4 is =B4-C4, E4 is =D4/C4. For costs, a positive value means "more expensive than budget". The flag checks two conditions at once: =IF(AND(ABS(E4)>$D$1,ABS(D4)>$F$1),"check","ok"). ABS turns −28% into 28, so large underspends show up as well; they often point to invoices that slipped into the next month. Finally, total the columns in B9:D9.
Task 2: price and volume variance
Quarterly revenue is above budget. Sales leadership wants to know whether that came from more units or better prices, so you split the variance per product:
| Part | Formula | Idea |
|---|---|---|
| Volume effect | (actual units − budget units) × budget price | What the extra units would have brought at the budget price |
| Price effect | (actual price − budget price) × actual units | What the price difference did on the units actually sold |
| Total | volume effect + price effect | exactly actual minus budget |
Task Quarterly revenue is above budget, and the head of sales wants to know whether that came from more units or better prices. For each product, work out budget revenue in B2:B6 (budget units times budget price from the Data sheet), actual revenue in C2:C6 and the variance actual minus budget in D2:D6. Split it into the volume effect in E2:E6 (unit variance times budget price) and the price effect in F2:F6 (price variance times actual units). B7:F7 are the totals.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Product | Budget revenue | Actual revenue | Variance | Volume effect | Price effect | |
| 2 | Basic chair | ||||||
| 3 | Pro chair | ||||||
| 4 | Flex desk | ||||||
| 5 | Standing desk | ||||||
| 6 | Mobile pedestal | ||||||
| 7 | Total | ||||||
| 8 | |||||||
| 9 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Budget units | Budget price | Actual units | Actual price | |
| 2 | Basic chair | 1200 | 189 | 1310 | 179 | |
| 3 | Pro chair | 640 | 349 | 590 | 359 | |
| 4 | Flex desk | 480 | 420 | 455 | 430 | |
| 5 | Standing desk | 310 | 690 | 362 | 665 | |
| 6 | Mobile pedestal | 900 | 139 | 870 | 139 | |
| 7 | ||||||
| 8 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
Because the volume effect uses the budget price and the price effect uses actual units, nothing is left over. Some textbooks add a separate mix or joint variance; what matters is that your team always uses the same split.
Common mistakes
Month typed into the formula
Write 3 instead of $B$1 in SUMIFS and in April you have a report that quietly keeps showing March. That is why the exercise is also checked with a different month.
Budget row picked by hand
=Budget!D4 only works while the budget sheet happens to be in the same order. Here the cost types are sorted differently, so MATCH has to find the row.
Percentage on the wrong base
=D4/B4 divides by actuals and gives a different number. In budget vs actual, the budget is the base.
Missing brackets in the volume effect
=Data!D2-Data!B2*Data!C2 multiplies first and then subtracts, which gives a huge negative number.
Check your result
- Task 1, March: total actual 329,300, budget 312,700, variance 16,600. "check" appears exactly for Materials and Marketing.
- The total in B9 must equal the total of all March postings. A control cell such as
=SUMIF(Postings!A2:A20,B1,Postings!C2:C20)-B9must return 0. - Task 2: budget 990,760, actual 1,003,610, variance 12,850, of which volume effect 24,550 and price effect −11,700. E7 plus F7 must equal D7.
The functions in German Excel
| English | German |
|---|---|
| SUMIFS | SUMMEWENNS |
| INDEX | INDEX |
| MATCH | VERGLEICH |
| IF, AND | WENN, UND |
| ABS, SUM | ABS, SUMME |
German Excel separates arguments with a semicolon instead of a comma.
Excel versions
Every function in this case is in every current Excel version, including Excel 2016 and older. XLOOKUP is not needed here.
Back to the course overview.