Montrey
Member
Hello all,
I have a dashboard almost complete but I have a small problem. I want my %difference formula to do a few things. For example;
Ex. 2010 Vs. 2009.
If 2010 is >1 and 2009=0 then I want the Difference to show 100%
If 2010=0 and 2009=<1 then I want the difference to show -100%
If 2010=0 and 2009=0 then I want the difference to show 0%
If 2010 is >1 and 2009>1 then it should just be straightforward((10-09)/09)
If 2010 is >1 and 2009<1 then I can't just do what is mentioned directly above^ because it brings back the wrong % because the 2009 is a negative.
If 2010 is <1 and 2009 <1 then I run into the same problem as mentioned above ^.
Has anyone run into this issue before? Here is what I have so far but I can't add anymore too it because it says it is too long.
=IF(AND(G10=0,E10>1),MIN(100%),IF(AND(E10=0,G10>E10),MAX(-100%),IF(E10=G10,"0.0%",IF(AND(E10>1,G10<0),((E10-G10)/(G10)*-1),(E10-G10)/G10))))
Therefore I am coming to you guys for help! Who knew such a simple formula could be so complex.
I have a dashboard almost complete but I have a small problem. I want my %difference formula to do a few things. For example;
Ex. 2010 Vs. 2009.
If 2010 is >1 and 2009=0 then I want the Difference to show 100%
If 2010=0 and 2009=<1 then I want the difference to show -100%
If 2010=0 and 2009=0 then I want the difference to show 0%
If 2010 is >1 and 2009>1 then it should just be straightforward((10-09)/09)
If 2010 is >1 and 2009<1 then I can't just do what is mentioned directly above^ because it brings back the wrong % because the 2009 is a negative.
If 2010 is <1 and 2009 <1 then I run into the same problem as mentioned above ^.
Has anyone run into this issue before? Here is what I have so far but I can't add anymore too it because it says it is too long.
=IF(AND(G10=0,E10>1),MIN(100%),IF(AND(E10=0,G10>E10),MAX(-100%),IF(E10=G10,"0.0%",IF(AND(E10>1,G10<0),((E10-G10)/(G10)*-1),(E10-G10)/G10))))
Therefore I am coming to you guys for help! Who knew such a simple formula could be so complex.