Variance Report Percentage Error

kzappe

New Member
Joined
Jun 5, 2017
Messages
1
Hello Board,

I am adding a percentage variance column in excel to our monthly P&L.

COL A = Actual
COL B = Budget
COL C = $Variance
COL D = %Variance

My issue comes when I have $0.00 in both COL A and B (no budget or variance in that month), I want a 0% not the 100%. Here is the formula I have:

=ABS(IF(B,C/B,"100%"))

What am I missing to get 100% variance if COL A or B have a $0 but 0% if COL A AND B are $0.

Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
You are not really evaluating the value of B
Also, you data types are different. If TRUE, calculate a number, if FALSE use text...

To restate your logic.
"if (COL A = 0 OR Col B =0) then 0 ELSE if (Col A = 0 AND Col B = 0) then 1 ELSE ABS(Col C/Col B)"
 
Upvote 0
The op is evaluating the value of B. Any non-zero number equates as TRUE, and zero equates as false.

=IF(B2,c2/b2,1) is a valid statement for example. It means if B2 is a non-zero value evaluate C2/B2 else return 1
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top