Hi All,
Please see spreadsheet attached.
I have an issue where I can't get the variance percentage for revenue and costs correct for every scenario. It covers most scenarios but there is some scenarios where it calculates it wrong.
All of the green highlighted cells are showing the correct variance %. But the cells in red are showing the incorrect variance %. In Cell D4 for costs it is showing +100% instead of -100% and in Cell I7 it is showing +100% instead of -100%.
Any help would be greatly appreciated!
Thanks.
Please see spreadsheet attached.
I have an issue where I can't get the variance percentage for revenue and costs correct for every scenario. It covers most scenarios but there is some scenarios where it calculates it wrong.
All of the green highlighted cells are showing the correct variance %. But the cells in red are showing the incorrect variance %. In Cell D4 for costs it is showing +100% instead of -100% and in Cell I7 it is showing +100% instead of -100%.
Any help would be greatly appreciated!
Thanks.
Variance ^1 Formulas.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Costs | Revenue | |||||||||
2 | Act | Bud | Var | Var % | Act | Bud | Var | Var % | |||
3 | 0 | 8 | 8 | 100% | 0 | 1 | -1 | 100% | |||
4 | 1 | 0 | -1 | 100% | 1 | 0 | 1 | 100% | |||
5 | 2 | 1 | -1 | -100% | 2 | 1 | 1 | 100% | |||
6 | 1 | 2 | 1 | 50% | 1 | 2 | -1 | -50% | |||
7 | -1 | 0 | 1 | 100% | -1 | 0 | -1 | 100% | |||
8 | 0 | -1 | -1 | -100% | 0 | -1 | 1 | 100% | |||
9 | -2 | -3 | -1 | -33% | -2 | -3 | 1 | 33% | |||
10 | -5 | -2 | 3 | 150% | -5 | -2 | -3 | -150% | |||
11 | 0 | 0 | 0 | 0% | 0 | 0 | 0 | 0% | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C3:C11 | C3 | =B3-A3 |
D3:D11,I4:I11 | D3 | =IFERROR(IF(AND(B3=0,A3=0),0,IF(B3=0,1,(C3/ABS(B3)))),0) |
H3:H11 | H3 | =F3-G3 |
I3 | I3 | =IF(AND(F3=0,G3>0),1,IF(AND(F3>0,G3=0),-1,IF(AND(F3=0,G3=0),0,(G3-F3)/F3))) |