Variance Percentage in Excel with Negative Numbers and Zero Budgets

The business unit budgeted an EBITDA loss of 100,000 for the quarter and delivered a loss of 150,000. The variance report shows +50%, formatted green. The general manager quotes it in the leadership meeting as a 50% improvement. Nobody catches it until the CFO asks why a bigger loss is green.

The standard percent variance formula, (Actual – Budget) / Budget, breaks whenever the budget is negative, zero, or has a different sign from the actual. All three happen every month in a real P&L: losses at business-unit level, new lines with no budget, small lines that swing either side of zero. This post covers the fix for each in Excel 2021 or 365, and the sign convention that makes a report read the same way on every line.

The negative-budget problem

With a budget of -100,000 and an actual of -150,000:

=(C10-B10)/B10

returns (-150,000 – (-100,000)) / -100,000 = +50%. Dividing by a negative number flips the sign of the result. The variance in money is -50,000, which is correct and unfavorable; the percentage says the opposite.

Divide by the absolute value of the budget:

=(C10-B10)/ABS(B10)

That returns -50%: the result is 50,000 worse than a budget of 100,000 in size. The sign of the percentage now always matches the sign of the variance in money.

Zero budgets

A line with no budget (a new cost, a one-off income item) divides by zero. IFERROR hides it, but it also hides every other error in the formula. Test for the zero explicitly and show a label:

=IF(B10=0, "n/m", (C10-B10)/ABS(B10))

“n/m” (not meaningful) is clearer than a blank, which looks like a missing formula, and far clearer than #DIV/0!. Right-align it so it sits in the column like a number.

Sign flips

Budget a loss of 20,000, deliver a profit of 30,000. The money variance is +50,000. The ABS formula returns +250%, which is arithmetically right and tells the reader nothing useful. Swings across zero also produce variances of 900% or 4,000% on lines that are near zero in both budget and actual.

Most finance teams show n/m when the sign changes, and when the budget is too small to be a meaningful base:

=IF(OR(ABS(B10)<Threshold, SIGN(B10)<>SIGN(C10)), "n/m", (C10-B10)/ABS(B10))

Threshold is an input, such as 10,000, below which a percentage is not shown. The money variance column still carries the full information.

Costs and the sign convention

The formula above treats “actual higher than budget” as positive. For revenue that is good news; for costs it is bad. A report where +8% is favorable on one line and unfavorable on the next forces every reader to think about every number.

Pick one convention and apply it to the whole report. The most readable is positive means favorable:

=IF($A10="Revenue", C10-B10, B10-C10)

Use a type column (Revenue, Cost) rather than testing line names. For costs stored as positive numbers, a budget of 200,000 against an actual of 230,000 gives -30,000: unfavorable, and negative. The percentage then divides the favorable-signed variance by the absolute budget:

=IF(B10=0, "n/m", D10/ABS(B10))

D10 is the favorable-signed variance. Costs at 230,000 against 200,000 show -15.0%; revenue at 540,000 against 500,000 shows +8.0%. Both read correctly at a glance, and a conditional format on the sign colors them consistently. The budget versus actual layout post covers the rest of the report.

If costs are stored as negative numbers (the accounting convention in many ERPs), actual minus budget already gives favorable as positive for every line, and ABS in the denominator does the rest. The type column is then unnecessary. Decide which way the data is stored and write it on the cover tab.

Subtotals and margins

For subtotals like gross profit and EBITDA, apply the same formula to the subtotal’s own budget and actual. Never add up the percentage variances of the lines above it.

Margins are already percentages. Show the variance in percentage points, not as a percentage of a percentage:

=C20-B20

A gross margin of 41.2% against a budget of 42.0% is -0.8 points. Calling it a -1.9% variance confuses everyone.

Where it breaks

IFERROR around everything. It turns a broken reference into a blank or a zero that looks like a real variance. Test for the specific condition instead.

Different conventions on different tabs. If the summary uses positive-favorable and the department tabs use actual-minus-budget, the same cost line has opposite signs on two pages. One convention, workbook-wide.

Percentages on tiny lines. A 300% variance on a 500 budget line pulls attention from a 4% variance on a 2 million line. The threshold rule above, plus sorting commentary by money variance, keeps the focus right.

Formatting that hides the sign. Red text without a minus sign or parentheses disappears when printed in black and white. Negatives in parentheses applies to variance columns too.

Similar Posts