% Variance Formula - Is this possible?

Mr Sloth

New Member
Joined
Nov 15, 2020
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I often do variance % formulas for costs and revenues, please see below the formula I am currently using. Is there a way that I can adapt the formula so that the cells I have highlighted in red show +100% if it is a positive variance and -100% if it is an adverse variance? I would like E36 to show -100%, and E38 to show +100% for the costs section and in the revenue section I would like J36 to show +100% and J38 to show -100%.

It seems very hard to find a way around this! Any help would be greatly appreciated.

Thanks.

Variance ^1 Formulas.xlsx
BCDEFGHIJ
31CostsRevenue
32ActBudVarVar %ActBudVarVar %
33205-15-300%20515300%
345201575%520-15-75%
3502020100%020-20-100%
36200-200%200200%
370000%0000%
38-1010%-10-10%
390-1-1-100%0-11100%
40-2-3-1-33%-2-3133%
41-3-2150%-3-2-1-50%
Sheet1
Cell Formulas
RangeFormula
D33:D41D33=C33-B33
E33:E41,J33:J41E33=IFERROR(D33/ABS(C33),0)
I33:I41I33=G33-H33
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Upvote 0
Solution
How about ...

Book1
BCDEFGHIJ
31CostsRevenue
32ActBudVarVar %ActBudVarVar %
33205-15-300.00%20515300.00%
345201575.00%520-15-75.00%
3502020100.00%020-20-100.00%
36200-20-100.00%20020100.00%
370000.00%0000.00%
38-101100.00%-10-1-100.00%
390-1-1-100.00%0-11100.00%
40-2-3-1-33.33%-2-3133.33%
41-3-2150.00%-3-2-1-50.00%
Sheet1
Cell Formulas
RangeFormula
D33:D41D33=C33-B33
J33:J41,E33:E41E33=IF(C33=0,SIGN(D33),D33/ABS(C33))
I33:I41I33=G33-H33
You are an absolute genius!!!!!! Thank you so much for your help that is perfect!!!!
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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