Re: Percent change with negative numbers and positve numbers
Use this in Excel where A1 is the new value and B1 is the old value:
=IFERROR(IF(AND(A2<0,B2<0,A2>B2),((A2-B2)/B2)*-1,IF(AND(A2<0,B2<0,A2>B2),
((A2-B2)/B2),IF(AND(A2<0,B2<0),((A2-B2)/B2)*-1,IF(AND(A2>0,B2<0),((A2-B2)/B2)*-1,IF(B2<a2,((a2-b2)
/B2),IF(B2>A2,((A2-B2)/B2),ABS(((A2-B2)/B2))))))))*100,"")
Explanation:
The above formula is basically this formula ((A2-B2)/B2)*100
But it only calculates positive numbers
But if you want to know the change percentage for all numbers my given formula will solve the issue and it handles all below situations:
1. A>0, B>0, A
2. A>0, B>0, A>B
3. A<0, B>0, |A|
4. A<0, B>0, |A|>B
5. A>0, B<0, A<|B|
6. A>0, B<0, A>|B|
7. A<0, B<0, |A|<|B|
8. A<0, B<0, |A|>|B|
</a2,((a2-b2)>