Variance % formula

marilynfebruary

New Member
Joined
Aug 20, 2011
Messages
13
Hi,
I've compiled a variance spreadsheet to track the changes from one month to another.
I'm trying to express these changes as a %, where there's no change, it should return 0% change.
But where there is a value in the variance spreadsheet which divides by zero in the previous month, the answer shows "#DIV/0". How do I express this as a 100% change?
=IF(VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)=0,0,VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)/VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0))
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try this:

=IF(VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0)=0,100,IF(VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)=0,0,VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)/VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0)))
 
Upvote 0
Thanks for the quick response, but it's not quite right: I'll try to explain...
Aug Variance = August demand - July demand
So if Aug demand is 0 and July demand is 0, then Aug Variance should reflect 0%.
Its only if Aug demand = 5 and July demand =0, that Aug variance would =5
So the variance % is Aug variance /July demand (=5/0) and I need this answer to be 100% (change from 0 to something)
 
Upvote 0
Thanks for the quick response, but it's not quite right: I'll try to explain...
Aug Variance = August demand - July demand
So if Aug demand is 0 and July demand is 0, then Aug Variance should reflect 0%.
Its only if Aug demand = 5 and July demand =0, that Aug variance would =5
So the variance % is Aug variance /July demand (=5/0) and I need this answer to be 100% (change from 0 to something)
 
Upvote 0
So the variance % is Aug variance /July demand (=5/0) and I need this answer to be 100% (change from 0 to something)
That is not the correct answer. Any change from zero would be a percentage change of infinity. In all departments where this kind of calculation was required, I was requested to report this kind of change as 999%. Do you understand what I mean, and is that acceptable?
 
Upvote 0
Hi Glenn, yes that is acceptable...
how should this be included in my current formula?
=IF(VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)=0,0,VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)/VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0))
 
Upvote 0
The type of formula I've been using would be:

=IF(VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)=0,IF(VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0)>0,-1,0),IF(VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0)=0,9.99,MIN(VLOOKUP($C4,'Aug Variances'!$C:$AC,F$1,0)/VLOOKUP($C4,'July Demand Master'!$C:$AC,F$1,0)-1,9.99)))
 
Upvote 0
Hi.. hope I'm not frustrating you:confused:

Any chance this formula could be rewritten to express the answers for a reduction as -2% instead of -102% and for an increase as 7% instead of -93%??

Thanks
MF
 
Upvote 0
Hi.. hope I'm not frustrating you:confused:

Any chance this formula could be rewritten to express the answers for a reduction as -2% instead of -102% and for an increase as 7% instead of -93%??

Thanks
MF

I think what you want is to add -1 at the end of yoru formula.

So =(yourformula)-1
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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