# Variance, 0 Divisor, and Conditional responses

#### AMott

##### New Member
I am currently working on a sample events budget and I would like to show the variance between my actual and projected budgets and whether or not our forecasting was successful. However, there are some instances in the example where the actual amount used was \$0.00 while there was a number placed in the projected budget. See table below...

 F G H I J K L M 7 Actual Actual % Projected Projected % Variance % Equation from Column 'M' (not actually shown in table) 8 Venue \$300.00 9.93% Venue \$500.00 14.71% -66.67% =(G8-J8)/ABS(G8) 9 Food & Bev \$2,500.00 82.78% Food & Bev \$1,000.00 29.41% 60.00% =(G9-J9)/ABS(G9) 10 Supplies \$100.00 3.31% Supplies \$300.00 8.82% -200.00% =(G10-J10)/ABS(G10) 11 Staffing \$110.00 3.64% Staffing \$100.00 2.94% 8.00% =(G11-J11)/ABS(G11) 12 Speakers \$0.00 0.00% Speakers \$1,500.00 44.12% #DIV/0! =(G12-J12)/ABS(G12) 13 Other \$10.00 0.33% Other \$0.00 0.00% 0.00% =(G13-J13)/ABS(G13) 14 Total \$3,020.00 100.00% Total \$3,400.00 100.00% -12.58% =(G14-J14)/ABS(G14)

<tbody>
</tbody>

When using this equation, (actual-projected)/ABS(actual)), the line items that did not have an actual expense or number return an error of #DIV/0!

Is it possible to combine that above formula with the formula (or similar formula) of =IFERROR(0,-100)? The purpose of this is to show that we were came in 100% under what we had projected for that line item.

#### Joe4

Welcome to the Board!
Instead of using IFERROR, you can just use an IF checking if the divisor is 0. i.e.
Code:
``[B][I]=IF(G12=0,100%,(G12-J12)/ABS(G12))[/I][/B]``

#### AMott

##### New Member
That is exactly what I was looking for! Thanks so much.

#### Joe4

You are welcome! 