Budget variance, with the divide-by-zero guarded (IFERROR)

Medium Math Accounting pack
Description
Hints 0/4
Solutions 0
–
Test case
1
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

Budget and actual spend for row 2 are in B2:C2. Put the variance — actual minus budget, over budget, as a decimal — in the Variance cell D2.

A department with a zero budget must return 0, not #DIV/0!, because reports are printed as they are.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCD
1DepartmentBudgetActualVariance
2Marketing50005500
3Ops80007600

Notes

Sign convention matters more than the arithmetic: for costs, a positive variance is overspend. A zero budget breaks the division, so IFERROR supplies 0 and the report stays printable.

How to approach

Your answer goes in D2.

  1. Target cell is D2
  2. (Actual − Budget) / Budget
  3. Guard the zero budget
  4. Shape: =IFERROR(ROUND(?, 4), ?)

Function guide

Related practice

FAQ

How do I calculate budget variance?

(actual − budget) / budget. Decide the sign convention first: for costs, positive usually means overspend.

Why does my variance show #DIV/0!?

The budget is zero. Wrap the division in IFERROR, or test the denominator before dividing.