Chapter 7: Forecasting, Budgeting, and What-If Analysis in Excel

Accounting Analytics: An Integrated Approach

In this chapter

Part II of V: Accounting Analytics with Excel

Chapter 4 of 5 in this Part

  • 7.1 From Explaining to Predicting and Deciding
  • 7.2 Correlation and Regression
  • 7.3 Forecasting and Backtesting
  • Guided Tutorial 7.1
  • 7.5 Budgets, Flexible Budgets, and Variances
  • Guided Tutorial 7.2
  • 7.7 Cost-Volume-Profit Analysis and What-If Tools
  • Guided Tutorial 7.3
  • 7.9 Communicating Forecasts and Models
  • 7.10 Looking Ahead

Learning objectives

  1. Measure the relationship between two variables with correlation and regression in the Data Analysis ToolPak, and judge the result with R², p-values, and residuals.
  2. Forecast with TREND and FORECAST.LINEAR, and evaluate a forecast by backtesting it against simple benchmark methods.
  3. Compare actual results with a static and a flexible budget, and explain sales-volume and flexible-budget variances.
  4. Build a contribution margin model with documented assumptions, and calculate break-even points.
  5. Evaluate a decision with Scenario Manager, data tables, and Goal Seek, and describe how Solver finds the best plan under constraints.
  6. Evaluate how precise a regression-based expectation is and how consistent a forecast is with experience, and identify the evidence needed to follow up unusual results and unapproved changes.

A forecast, a budget review and a decision

  • The controller is preparing the planning meeting for next year
  • She needs a revenue forecast she can defend against the sales team
  • She wants to know how the year compared with a budget she suspects
  • And whether to repeat the Furniture Seasonal Promotion

7.1 From Explaining to Predicting and Deciding

From what happened to what could happen

  • Predictive analytics estimates what is likely, such as next quarter’s revenue
  • Prescriptive analytics recommends what to do, such as whether to repeat a promotion
  • A forecast cannot be checked against the records until the period is over
  • So every model here is paired with a test

7.2 Correlation and Regression

Correlation measures a straight-line relationship

  • CORREL, or the ToolPak’s correlation matrix, ranges from −1 to +1
  • It measures only linear association, so a curve can show almost none
  • It says nothing about cause: a third variable may drive both
  • One unusual observation can change it, and the conclusion with it

Regression fits a least-squares line

  • The line minimizes the squared vertical distances from the points
  • The intercept is the value at zero; the slope is the change per unit of x
  • Accountants use it to split mixed costs and model costs against activity
  • Auditors use it to build expectations to compare with recorded amounts

Read four numbers in the regression output

A mock of the ToolPak's summary output for a regression of monthly revenue on a month index. It shows the regression statistics, including a low R Square; the ANOVA table with its Significance F; and the coefficients table for the intercept and the month index, with standard errors, t statistics, p-values, and 95 percent confidence limits. Four numbered markers outline the R Square, the Significance F, the slope, and the slope's p-value, and a legend explains each.
Figure 7.2 · Regression Output from the Data Analysis ToolPak

One start-up month makes a trend look significant

A line chart of Charles River's monthly invoiced revenue from January 2024 to December 2026, with two straight trend lines. Revenue moves up and down within a narrow band in almost every month, but the first month, January 2024, labeled as the start-up month, is far below the rest. A dashed trend line fitted to all thirty-six months slopes upward noticeably, while a solid trend line fitted without January 2024 rises about half as steeply. The legend gives the R Square of each line, both of them low.
Figure 7.1 · Monthly Revenue with Two Fitted Trends

Watch out: a significant slope does not prove a trend

  • One unusual point at an end can tilt a line enough to make its slope significant
  • Data sets with identical lines and fit statistics can look nothing alike (Anscombe)
  • Plot the data and the residuals before you report a regression
  • Investigate a point that stands apart; report with and without it, and why

7.3 Forecasting and Backtesting

Trend functions extend the line

  • FORECAST.LINEAR gives the line’s value at a new x; TREND gives several
  • TREND spills its values into a spill range; A5# refers to the whole range
  • A formula returns #SPILL! rather than overwrite cells in its way
  • UNIQUE and SORT are dynamic arrays too, like Chapter 6’s FILTER

A forecast must beat the simple benchmarks

Table 7.1 · Benchmark forecasting methods and the linear trend

Method Forecast of a future period Excel example Works well when
Mean The average of the historical values =AVERAGE(C3:C34) The series fluctuates around a stable level
Naive The last observed value =C34 The series wanders without a stable level
Seasonal naive The value of the same season a year earlier =C23 for the next month, =C31 for the next quarter There is a strong seasonal pattern
Drift The last value plus, for each period ahead, the average change from the first value to the last =C34+(C34-C3)/31 for the next period The series grows or shrinks at a steady average rate
Linear trend, a regression The least-squares line fitted to all the values, extended FORECAST.LINEAR or TREND, as in Tutorial 7.1 The values lie close to a straight line

A backtest forecasts a period with a known answer

  • Fit the method to an earlier part of the history, and hold back a later part
  • Forecast the held-back part and compare with what actually happened
  • Take each absolute error as a percentage of actual revenue; average those for MAPE
  • The most recent quarter with actual results is the natural holdout

Check your understanding

What does each result tell you?

  1. An R Square near zero
  2. A slope whose p-value is well below five percent
  3. One residual far from all the others
  4. The method with the smallest backtest error

Each result calls for a next step

  1. The line explains little of the variation
  2. Evidence against a zero slope under the model’s assumptions; check whether one point drives it
  3. An unusual residual: investigate it, and see whether dropping it changes the fit
  4. A candidate method for this holdout; report an illustrative error range with its limits

Guided Tutorial 7.1: Forecasting Revenue and Testing the Forecast

Forecast and test in nine steps

  1. Build the monthly revenue series
  2. Chart the series
  3. Measure what moves with revenue
  4. Fit a trend to all thirty-six months
  5. Fit the trend again without the start-up month
  6. Backtest three forecasts of the fourth quarter of 2026
  7. Measure the forecast errors
  8. Forecast the first quarter of 2027 with a range
  9. Document the forecast

The mean beat the trend in the backtest

A mock of the backtest area of the Forecast worksheet. For October, November, and December 2026 and the whole quarter, it shows the actual revenue and the forecasts of three methods: a trend from FORECAST.LINEAR, the mean of February 2024 to September 2026, and the same quarter of the previous year. The error columns, outlined, show that the trend overshoots the quarter by several percent, the mean is almost exactly right, and the same quarter last year is close on the total but has the largest monthly errors.
Figure 7.3 · Backtesting Three Forecasts of the Fourth Quarter of 2026

Checkpoint

Check that:

  • C38 is zero, so the monthly series contains all of the revenue in InvoiceLines;
  • without January 2024, revenue correlates more closely with the average line than with the number of customers;
  • the trend’s slope is significant with January 2024 and not significant without it;
  • the mean method has the smallest errors in the backtest;
  • the forecast for the first quarter of 2027 is stated with a low and a high value.

7.5 Budgets, Flexible Budgets, and Variances

A budget is built from drivers

  • BudgetLine holds the detail; its DriverType records how each amount was set
  • Revenue is forecast units times a planned net price; COGS the same units at standard
  • Commissions follow revenue; payroll taxes and benefits follow salaries
  • Each driver can be tested on its own

Watch out: a summary may not hold all its detail

  • The Budget Table summarizes the budget by cost center
  • Lines with no cost center, such as rent, utilities and insurance, are missing
  • A total taken from the summary is smaller than the budget’s true total
  • Reconcile a summary to its detail before you rely on it

A flexible budget separates volume from price

A diagram of three boxes from left to right: the static budget, planned volume at planned prices and standard costs; the flexible budget, actual volume at planned prices and standard costs; and the actual results, actual volume at actual prices, costed at standard. Each box gives the Furniture margin for fiscal 2026, which is far lower in the flexible budget than in the static budget, and a little lower again in the actual results. Brackets between the boxes label the sales-volume variance, a very large unfavorable amount, and the flexible-budget variance, a much smaller unfavorable amount, with a note on what each measures.
Figure 7.4 · Static Budget, Flexible Budget, and Actual Results

Two variances connect the three levels

Table 7.2 · The two variances between the budget levels

Variance Calculation What it measures Whom to ask about it first
Sales-volume variance Flexible-budget margin minus static-budget margin The effect of selling more or fewer units than planned, and a different mix of them, at planned margins Sales and marketing, and whoever prepared the volume forecast
Flexible-budget variance Actual margin minus flexible-budget margin The effect of actual prices and costs differing from plan on the units actually sold Pricing, purchasing, and production

Flex the costs that vary

  • A commission tied to revenue is variable: flex it to the rate times actual revenue
  • Salaries and rent are fixed over the range and stay at their budget
  • A commission far below the static budget is mostly smaller sales, not savings
  • Test a driver directly, such as actual burden over actual salaries

Check your understanding

What does each finding mean?

  1. The budget planned several times the units sold
  2. On the units sold, prices fell short of plan
  3. Commission expense is far below the static budget
  4. Actual payroll burden is a lower rate than budgeted

Each finding has its meaning

  1. A sales-volume variance that reflects the forecast more than the business
  2. A flexible-budget variance, here entirely a price variance
  3. Mostly volume: compare it with the flexed commission instead
  4. A rate difference to explain before calling it a saving

Guided Tutorial 7.2: Comparing 2026 with the Budget

Steps 1 to 6: flex the sales budget

  1. Import the budget lines
  2. Extract the planned prices
  3. Price the 2026 invoice lines at the planned prices
  4. Build the flexible-budget report
  5. Calculate the two variances
  6. Split the price variance

Steps 7 to 11: prices and expenses

  1. Chart the Furniture prices by month
  2. Import the operating expenses from the ledger
  3. Compare the operating expenses with their budget
  4. Test the drivers of the two exceptions
  5. Document the analysis

Flexed, the plan’s prices were slightly optimistic

A mock of the BudgetReport worksheet. For Furniture, Lighting, Textiles, Accessories, and the total, it shows the static budget revenue, cost of goods sold, and margin; the flexible budget revenue, cost, and margin; the actual revenue, cost at standard, and margin; the sales-volume and flexible-budget variances, outlined; the promotional discounts; the price gap before discounts; and the budgeted and actual units. The sales-volume variances are very large and unfavorable, the flexible-budget variances are small and unfavorable, and budgeted units are several times the actual units in every product line.
Figure 7.5 · The Flexible-Budget Report by Product Line

The promotion cost more, and later, than planned

A line chart of Furniture prices as a percentage of list price in each month of fiscal 2026. A dashed line for the budget's planned net price stays above the other two lines in most months and dips in September and October, the promotion months in the budget. A line for the actual price before promotions is nearly flat below the planned line. A dotted line for the actual price after promotions falls sharply in September and October and recovers only partly in November and December.
Figure 7.6 · Planned and Actual Furniture Prices by Month

Checkpoint

Check that:

  • only a handful of FlexLines rows have no planned price, you can explain why, and the row control in B22 is zero;
  • on the BudgetReport worksheet, the margin bridge difference in row 21 is zero for every product line, so the static margin plus the two variances equals the actual margin;
  • the price gap before discounts is a similar small percentage of flexible revenue in every product line;
  • the Furniture price after promotions falls in September and October and stays below the price before promotions through December;
  • the burden rate and the flexed commission explain the two largest operating-expense variances.

7.7 Cost-Volume-Profit Analysis and What-If Tools

Contribution margin covers fixed costs, then profit

  • Contribution margin is revenue less variable costs
  • Profit is the contribution margin less fixed costs
  • Break-even revenue is fixed costs divided by the contribution margin ratio
  • The margin of safety is how far revenue sits above break-even

A price cut must be repaid by volume

  • A discount lowers the contribution margin of every unit that receives it
  • Volume must rise enough to replace the margin lost
  • The lift needed depends only on the margins before and after the cut
  • Fixed costs do not enter, because the decision does not change them

Four tools ask what-if questions

Table 7.3 · Excel’s what-if tools

Tool Where to find it Question it answers
Scenario Manager Data > What-If Analysis > Scenario Manager What are the results under each of several named sets of inputs?
Data table Data > What-If Analysis > Data Table How does a result change across a range of values of one or two inputs?
Goal Seek Data > What-If Analysis > Goal Seek What value of one input produces a target result?
Solver Data > Solver, after loading the Solver add-in What values of several inputs give the best result within a set of constraints?

Document every assumption and its sensitivity

  • State each key assumption, the value used, and its source
  • Add how sensitive the conclusion is to it
  • An assumption that can move far without changing the answer needs little evidence
  • One that reverses the answer with a small change deserves the most scrutiny

Check your understanding

Which what-if tool answers each question?

  1. Results under three named sets of inputs
  2. The margin across a range of discount rates
  3. The volume lift at which a promotion breaks even
  4. The product mix that maximizes margin within capacity

Each question has its tool

  1. Scenario Manager
  2. A data table
  3. Goal Seek
  4. Solver

Guided Tutorial 7.3: Should Charles River Repeat the Furniture Promotion?

Model the promotion in eight steps

  1. Set up the Model worksheet
  2. Calculate the inputs from the data
  3. Build the model
  4. Compare scenarios with Scenario Manager
  5. Map the result with a data table
  6. Find the break-even lift with Goal Seek
  7. Check the lift against the order data
  8. Document the assumptions and the recommendation

The model keeps inputs apart from results

A mock of the Model worksheet, with columns for the input or result, its value, its name, and its source. The discount rate and the volume lift are blue inputs and are outlined. Below them are the units, price before discount, and variable cost per unit of the promotion's lines and the commission rate, all calculated from the data, and three results: the contribution without the promotion, the contribution with it, and the difference, which is selected and negative. The formula bar shows the difference formula written with the named cells.
Figure 7.7 · The Promotion Model on the Model Worksheet

Every discount scenario loses margin

A mock of the Scenario Summary worksheet that Scenario Manager creates. For the current values and four scenarios, End the promotion, Repeat as in 2026, Repeat with 15% lift, and Deeper discount, it lists the changing cells, Discount and Lift, and the result cells, ContributionWith and Difference. The Difference row is outlined: it is zero when the promotion ends and negative in every other scenario.
Figure 7.8 · The Scenario Summary Report

The volume lift is the assumption that matters

Table 7.5 · Assumptions of the promotion model

Assumption Value used Sensitivity
Discount rate 10% A 5% discount would need a much smaller lift to break even
Volume lift 0% The break-even lift is almost a third of the promotion’s volume
Orders without the promotion Same orders at the price before discount If some orders would have been lost without it, the promotion’s cost is lower
Variable cost per unit Standard cost per unit Treating the fixed overhead in standard cost as fixed lowers the break-even lift slightly
Commission rate 2026 actual rate Small; commissions fall with the discount

Checkpoint

Check that:

  • the Model worksheet’s inputs are calculated from the data and its results use the named cells;
  • the Scenario Summary shows a negative difference for every scenario with a discount;
  • the data table and Goal Seek agree on the break-even lift at a 10 percent discount;
  • the Furniture units ordered in the promotion’s months show no increase near the break-even lift.

7.9 Communicating Forecasts and Models

Give the range, the meaning and the key assumption

  • Give a forecast as a range, with its method and the period it was fitted to
  • Say which variances are meaningful: the volume variance reflects the forecast
  • State the assumption that matters most, and how far it would have to move
  • Record when each assumption was last reviewed, and revisit it

7.10 Looking Ahead

Back to the controller’s three requests

  • Forecast: the mean beat the trend, so next quarter is stated as a range
  • Budget: the volume assumption failed; flexed, prices were slightly optimistic
  • Promotion: as it ran, it needed a third more volume; orders showed no such rise
  • Next, Chapter 8 looks at the Charles River data through the auditor’s eyes

Summary

  • Correlation and regression measure relationships; plots show what they hide
  • A forecast earns trust by beating simple benchmarks in a backtest
  • A flexible budget separates the volume assumption from prices and costs
  • Contribution margin and break-even frame a decision; what-if tools explore it
  • Every model documents its assumptions and how sensitive the answer is to each

Key terms

Assumption documentation · Backtest · Benchmark forecast · Break-even point · Constraint · Contribution margin · Correlation coefficient · Cost-volume-profit analysis · Data table · Flexible budget · Flexible-budget variance · Forecast error · Goal Seek · Margin of safety · Master budget · P-value · R Square · Residual · Sales-volume variance · Scenario · Shadow price · Simple linear regression · Solver · Spill range · Static budget

Practice and next steps

  • Financial Accounting
    • Exercise 7.1: Forecasting Revenue by Product Line
    • Exercise 7.2: Reconciling the Budget to Its Detail
  • Managerial Accounting
    • Exercise 7.3: Company Break-Even and Margin of Safety
    • Exercise 7.4: The Product Mix under a Capacity Constraint
  • Auditing
    • Exercise 7.5: Regression-Based Expectations for Revenue and Commissions
    • Exercise 7.6: Evaluating Management’s Forecast

Next: Chapter 8: Audit Analytics in Excel

About these slides

These slides accompany Accounting Analytics: An Integrated Approach, licensed under CC BY-SA 4.0. Every figure and table comes from the chapter:

https://aa.accountinganalyticshub.com/chapters/07-analysis-and-modeling/chapter.html