Variance analysis %change formula

Salbee

New Member
Joined
Sep 15, 2021
Messages
1
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

Not sure if you could assist.

I would like to calculate the variance in terms of %.

Example
1. this month 0,
next month 600,
Variance 100%

2. Last month 600
This month 0
Variance = - 100%

3. This month 0
Next month 0
Variance = 0%

4. This month =1
Next month=2
Variance =50%

Have even tried it in the pivot version and even the power query version, and also power BI.

Does not seems to get the results I want.

Could u advise how to get this done?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
=IF(AND(A2=0,B2>0),1,IF(AND(A2>0,B2=0),-1,IF(AND(A2=0,B2=0),0,(B2-A2)/A2))) and format as percentage


Book1
ABC
1This MonthNext MonthVarianc
20600100%
36000-100%
4000%
550060020%
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=IF(AND(A2=0,B2>0),1,IF(AND(A2>0,B2=0),-1,IF(AND(A2=0,B2=0),0,(B2-A2)/A2)))
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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