ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Percentage Calcs (https://www.excelbanter.com/excel-discussion-misc-queries/263963-percentage-calcs.html)

Muskoka83

Percentage Calcs
 
Trying to figure out the % difference(increase or decrease) between two #s
(A1 was last year, B1 is this year):
A1 = $65,902
B1 = $32,732

The way I did it was: IF(ISERROR((B1-A1)/B1),"--",(B1-A1)/B1)
which returns a value of: 101%

Which is wrong as it should be approximately 50%. I don't want to have to
change my formula in each row based on if last year was higher or lower than
this year...

Thanks!


David Biddulph[_2_]

Percentage Calcs
 
=IF(A1=0,"--",(B1-A1)/A1)
--
David Biddulph


"Muskoka83" wrote in message
...
Trying to figure out the % difference(increase or decrease) between two #s
(A1 was last year, B1 is this year):
A1 = $65,902
B1 = $32,732

The way I did it was: IF(ISERROR((B1-A1)/B1),"--",(B1-A1)/B1)
which returns a value of: 101%

Which is wrong as it should be approximately 50%. I don't want to have to
change my formula in each row based on if last year was higher or lower
than
this year...

Thanks!




All times are GMT +1. The time now is 03:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com