ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sales comparison percentage question (https://www.excelbanter.com/excel-discussion-misc-queries/179826-sales-comparison-percentage-question.html)

Jezziebones

Sales comparison percentage question
 
I am monitoring a sales incentive program at work, and I have to create a
spreadsheet with quarterly sales from last year, quarterly sales from this
year, and a percent increase/decrease for each state. I am using this formula
for the % Change field with I2 being 1st Qtr 2008 totals, and E2 being 1st
Qtr 2007 totals

=(I2-E2)/ABS(E2)

which gives me the correct results, with the following exceptions. If all
the values are zeroes, I get the #DIV/0! result and I want it to display 0%;
if the sales from 2007 are a positive number, but the sales from 2008 were
zeroes, I get a -100% BUT if the sales from 2008 are a positive number, and
the sales from 2007 are zeroes, then the % Change field does not compute. Can
you tell me what I can do?

Thank you

David Biddulph[_2_]

Sales comparison percentage question
 
If you really want to show a change of zero when your 2007 figure was zero,
then use =IF(E2=0,0,(I2-E2)/ABS(E2)) , but note that then you won't see any
difference between:
a) the case when there is no change from 2007 to 2008, and
b) the case where 2007 had a figure of zero, but 2008 is non-zero.

It may be better to use something like
=IF(E2=0,"",(I2-E2)/ABS(E2)) or
=IF(E2=0,"starting from zero",(I2-E2)/ABS(E2)) or
=IF(E2=0,"new figure of "&I2&", starting from zero",(I2-E2)/ABS(E2))
--
David Biddulph

"Jezziebones" wrote in message
...
I am monitoring a sales incentive program at work, and I have to create a
spreadsheet with quarterly sales from last year, quarterly sales from this
year, and a percent increase/decrease for each state. I am using this
formula
for the % Change field with I2 being 1st Qtr 2008 totals, and E2 being 1st
Qtr 2007 totals

=(I2-E2)/ABS(E2)

which gives me the correct results, with the following exceptions. If all
the values are zeroes, I get the #DIV/0! result and I want it to display
0%;
if the sales from 2007 are a positive number, but the sales from 2008 were
zeroes, I get a -100% BUT if the sales from 2008 are a positive number,
and
the sales from 2007 are zeroes, then the % Change field does not compute.
Can
you tell me what I can do?

Thank you




Jezziebones

Sales comparison percentage question
 
Thank you David. I'll give it a try.

"David Biddulph" wrote:

If you really want to show a change of zero when your 2007 figure was zero,
then use =IF(E2=0,0,(I2-E2)/ABS(E2)) , but note that then you won't see any
difference between:
a) the case when there is no change from 2007 to 2008, and
b) the case where 2007 had a figure of zero, but 2008 is non-zero.

It may be better to use something like
=IF(E2=0,"",(I2-E2)/ABS(E2)) or
=IF(E2=0,"starting from zero",(I2-E2)/ABS(E2)) or
=IF(E2=0,"new figure of "&I2&", starting from zero",(I2-E2)/ABS(E2))
--
David Biddulph

"Jezziebones" wrote in message
...
I am monitoring a sales incentive program at work, and I have to create a
spreadsheet with quarterly sales from last year, quarterly sales from this
year, and a percent increase/decrease for each state. I am using this
formula
for the % Change field with I2 being 1st Qtr 2008 totals, and E2 being 1st
Qtr 2007 totals

=(I2-E2)/ABS(E2)

which gives me the correct results, with the following exceptions. If all
the values are zeroes, I get the #DIV/0! result and I want it to display
0%;
if the sales from 2007 are a positive number, but the sales from 2008 were
zeroes, I get a -100% BUT if the sales from 2008 are a positive number,
and
the sales from 2007 are zeroes, then the % Change field does not compute.
Can
you tell me what I can do?

Thank you






All times are GMT +1. The time now is 04:25 AM.

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