Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-2008, 09:32 PM
marc747@excite.com
 
Posts: n/a
Division % error

I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
time I have a 0 in either of the cells I get an error, how can I get
the correct calculation without errors.
Thanks
Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 09:49 PM
Peo Sjoblom
 
Posts: n/a
Re: Division % error

=IF(B3=0,0,(A3-B3)/B3)

no need to use sum here

--


Regards,


Peo Sjoblom

<marc747@excite.com> wrote in message
news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com...
>I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> time I have a 0 in either of the cells I get an error, how can I get
> the correct calculation without errors.
> Thanks



Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 09:51 PM
Earl Kiosterud
 
Posts: n/a
Re: Division % error

First of all, you didn't say what error you get, but it's likely a #DIV/0! error when B3 is
zero. Secondly, you don't really need the SUM() function. Your formula could have been
=(A3-B3)/B3. Try this:

=IF(B3<>0,(A3-B3)/B3,"eh?")

Replace "eh?" with whatever you want to see when B3 is zero. It could be 0, "" (for what
looks like nothing), etc.

--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
<marc747@excite.com> wrote in message
news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com...
>I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> time I have a 0 in either of the cells I get an error, how can I get
> the correct calculation without errors.
> Thanks



Reply With Quote
  #4 (permalink)  
Old 07-19-2008, 12:28 AM
marc747@excite.com
 
Posts: n/a
Re: Division % error

Thanks, Can you look below and see how I can Formulate so that I can
get the correct calaulation, I have a minus in cell "B3" and when I
and trying to get a percentage change I am getting "-1909.50% this has
to be a + number because first it is "-210" and then from "-210" we
have "3799.95 so the % has to be an increase.

A B C
3799.95 -210 = -1909.50% " =(A3-B3)/B3"

Thanks









On Jul 18, 2:51*pm, "Earl Kiosterud" <some...@nowhere.com> wrote:
> First of all, you didn't say what error you get, but it's likely a #DIV/0! error when B3 is
> zero. *Secondly, you don't really need the SUM() function. *Your formula could have been
> =(A3-B3)/B3. *Try this:
>
> =IF(B3<>0,(A3-B3)/B3,"eh?")
>
> Replace "eh?" with whatever you want to see when B3 is zero. *It could be 0, "" (for what
> looks like nothing), etc.
>
> --
> Regards from Virginia Beach,
>
> Earl Kiosterudwww.smokeylake.com
> -----------------------------------------------------------------------<marc...@excite.com> wrote in message
>
> news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com...
>
>
>
> >I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> > time I have a 0 in either of the cells I get an error, how can I get
> > the correct calculation without errors.
> > Thanks- Hide quoted text -

>
> - Show quoted text -


Reply With Quote
  #5 (permalink)  
Old 07-19-2008, 01:02 AM
Earl Kiosterud
 
Posts: n/a
Re: Division % error

=IF(B3<>0,(B3-A3)/B3,"eh?")

Eh?

--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
<marc747@excite.com> wrote in message
news:962ed8d5-099c-4bf6-b5db-4f24ef3a41a3@u6g2000prc.googlegroups.com...
Thanks, Can you look below and see how I can Formulate so that I can
get the correct calaulation, I have a minus in cell "B3" and when I
and trying to get a percentage change I am getting "-1909.50% this has
to be a + number because first it is "-210" and then from "-210" we
have "3799.95 so the % has to be an increase.

A B C
3799.95 -210 = -1909.50% " =(A3-B3)/B3"

Thanks


On Jul 18, 2:51 pm, "Earl Kiosterud" <some...@nowhere.com> wrote:
> First of all, you didn't say what error you get, but it's likely a #DIV/0! error when B3
> is
> zero. Secondly, you don't really need the SUM() function. Your formula could have been
> =(A3-B3)/B3. Try this:
>
> =IF(B3<>0,(A3-B3)/B3,"eh?")
>
> Replace "eh?" with whatever you want to see when B3 is zero. It could be 0, "" (for what
> looks like nothing), etc.
>
> --
> Regards from Virginia Beach,
>
> Earl Kiosterudwww.smokeylake.com
> -----------------------------------------------------------------------<marc...@excite.com>
> wrote in message
>
> news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com...


> >I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> > time I have a 0 in either of the cells I get an error, how can I get
> > the correct calculation without errors.
> > Thanks- Hide quoted text -

>
> - Show quoted text -



Reply With Quote
  #6 (permalink)  
Old 07-19-2008, 01:30 AM
joeu2004
 
Posts: n/a
Re: Division % error

On Jul 18, 5:28 pm, marc...@excite.com wrote:
> I have a minus in cell "B3" and when I and trying
> to get a percentage change I am getting "-1909.50%


Are you familiar the phrase "garbage in, garbage out"?

Your computation is correct, but the result might be meaningless
because you might not be using the correct computation for the
situation.

Unfortunately, you are not being very clear about the situation. So
it is difficult to infer the best solution for you.

First, you need to understand that the formula (A3-B3)/B3 gives you
the percentage change from B3 to A3. For example, if something cost
$100 (B3) last year and it costs $150 (A3) this year, the percentage
change is 50%.

Is that really what you have in A3 and B3? Did the value start out at
-210, and it is now 3799.95(!)? I doubt it.

Conversely, if you want to compute the percentage change from A3 to
B3, you would compute (B3-A3)/A3. But I doubt that fits your
situation either.

Moreover, both formulas make sense only if the sign of A3 and B3 is
the same; that is, they are both positive, or they are both negative,
and the denominator is not zero.

My guess is: 3799.95 represents some value, and -210 represents the
change. That is, the value went from 3799.95 to 3589.95.

If that's the case, the formula that you want is simply =B3/A3,
formatted as Percentage. That will work when B3 is positive (increase
in value), too.

Hope that helps. If not, please specify what the numbers in A3 and B3
represent.


----- original posting -----

On Jul 18, 5:28*pm, marc...@excite.com wrote:
> Thanks, Can you look below and see how I can Formulate so that I can
> get the correct calaulation, I have a minus in cell "B3" and when I
> and trying to get a percentage change I am getting "-1909.50% this has
> to be a + number because first it is "-210" and then from "-210" we
> have "3799.95 so the % has to be an increase.
>
> * * A * * * * * B * * * * * C
> 3799.95 -210 *= *-1909.50% " =(A3-B3)/B3"
>
> Thanks
>
> On Jul 18, 2:51*pm, "Earl Kiosterud" <some...@nowhere.com> wrote:
>
>
>
> > First of all, you didn't say what error you get, but it's likely a #DIV/0! error when B3 is
> > zero. *Secondly, you don't really need the SUM() function. *Your formula could have been
> > =(A3-B3)/B3. *Try this:

>
> > =IF(B3<>0,(A3-B3)/B3,"eh?")

>
> > Replace "eh?" with whatever you want to see when B3 is zero. *It could be 0, "" (for what
> > looks like nothing), etc.

>
> > --
> > Regards from Virginia Beach,

>
> > Earl Kiosterudwww.smokeylake.com
> > -----------------------------------------------------------------------<mar*c...@excite.com> wrote in message

>
> >news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com...

>
> > >I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> > > time I have a 0 in either of the cells I get an error, how can I get
> > > the correct calculation without errors.
> > > Thanks- Hide quoted text -

>
> > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -


Reply With Quote
  #7 (permalink)  
Old 07-19-2008, 04:50 AM
marc747@excite.com
 
Posts: n/a
Re: Division % error


Thanks, I am thinking maybe this is the way excel calculates!!!!

But I would like to try and see maybe there is a way to do it
correctly. I am giving you an example of how my numbers are!

(A) $3799.95 is sales for June 2008
(B) $-210 is sales for June 2007 (in this case it was a return item)
So in this case I would like to know in June 2008 how many +/- % is
it.

Thanks.







On Jul 18, 6:30*pm, joeu2004 <joeu2...@hotmail.com> wrote:
> On Jul 18, 5:28 pm, marc...@excite.com wrote:
>
> > I have a minus in cell "B3" and when I and trying
> > to get a percentage change I am getting "-1909.50%

>
> Are you familiar the phrase "garbage in, garbage out"?
>
> Your computation is correct, but the result might be meaningless
> because you might not be using the correct computation for the
> situation.
>
> Unfortunately, you are not being very clear about the situation. *So
> it is difficult to infer the best solution for you.
>
> First, you need to understand that the formula (A3-B3)/B3 gives you
> the percentage change from B3 to A3. *For example, if something cost
> $100 (B3) last year and it costs $150 (A3) this year, the percentage
> change is 50%.
>
> Is that really what you have in A3 and B3? *Did the value start out at
> -210, and it is now 3799.95(!)? *I doubt it.
>
> Conversely, if you want to compute the percentage change from A3 to
> B3, you would compute (B3-A3)/A3. *But I doubt that fits your
> situation either.
>
> Moreover, both formulas make sense only if the sign of A3 and B3 is
> the same; that is, they are both positive, or they are both negative,
> and the denominator is not zero.
>
> My guess is: *3799.95 represents some value, and -210 represents the
> change. *That is, the value went from 3799.95 to 3589.95.
>
> If that's the case, the formula that you want is simply =B3/A3,
> formatted as Percentage. *That will work when B3 is positive (increase
> in value), too.
>
> Hope that helps. *If not, please specify what the numbers in A3 and B3
> represent.
>
> ----- original *posting -----
>
> On Jul 18, 5:28*pm, marc...@excite.com wrote:
>
>
>
> > Thanks, Can you look below and see how I can Formulate so that I can
> > get the correct calaulation, I have a minus in cell "B3" and when I
> > and trying to get a percentage change I am getting "-1909.50% this has
> > to be a + number because first it is "-210" and then from "-210" we
> > have "3799.95 so the % has to be an increase.

>
> > * * A * * * * * B * * * * * C
> > 3799.95 -210 *= *-1909.50% " =(A3-B3)/B3"

>
> > Thanks

>
> > On Jul 18, 2:51*pm, "Earl Kiosterud" <some...@nowhere.com> wrote:

>
> > > First of all, you didn't say what error you get, but it's likely a #DIV/0! error when B3 is
> > > zero. *Secondly, you don't really need the SUM() function. *Your formula could have been
> > > =(A3-B3)/B3. *Try this:

>
> > > =IF(B3<>0,(A3-B3)/B3,"eh?")

>
> > > Replace "eh?" with whatever you want to see when B3 is zero. *It could be 0, "" (for what
> > > looks like nothing), etc.

>
> > > --
> > > Regards from Virginia Beach,

>
> > > Earl Kiosterudwww.smokeylake.com
> > > -----------------------------------------------------------------------<mar**c...@excite.com> wrote in message

>
> > >news:1b99c8b4-1906-4d94-a91d-900e4e8fbe87@v1g2000pra.googlegroups.com....

>
> > > >I am using this Formula (=SUM(A3-B3)/B3) to get the +/- % but every
> > > > time I have a 0 in either of the cells I get an error, how can I get
> > > > the correct calculation without errors.
> > > > Thanks- Hide quoted text -

>
> > > - Show quoted text -- Hide quoted text -

>
> > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -


Reply With Quote
  #8 (permalink)  
Old 07-19-2008, 05:52 AM
joeu2004
 
Posts: n/a
Re: Division % error

On Jul 18, 9:50*pm, marc...@excite.com wrote:
> Thanks, I am thinking maybe this is the way excel
> calculates!!!!


Excel does not calculate any particular "way". You tell Excel how you
want something calculated, and Excel does it. Whether or not the
calculation makes sense is entirely up to you.


> (A) $3799.95 is sales for June 2008
> (B) $-210 is sales for June 2007 [....]
> So in this case I would like to know in June 2008
> how many +/- % is it.


Okay, you do indeed have the right idea. If the more-recent number
(2008) is in A3 and the older number (2007) is in B3, I think the
following formula will give you the result you desire:

=IF(B3=0, SIGN(A3), (A3-B3)/ABS(B3))

If the old number was zero, any positive change will be treated as
100%, and any negative change will be treated as -100%. This is an
arbitrary choice. There is no right answer.

Otherwise:

1. A change from -50 to 0 will be a 100% gain, and from -50 to 50 will
be a 200% change. Likewise for 50 to 100 and 50 to 150.

2. A change from 50 to 0 will be a 100% loss (100%), and from 50 to
-50 will be a 200% loss (-200%). Likewise for -50 to -100 and -50 to
-150.

In your case, a change from -210 to 3800 about a 1910% gain.
Reply With Quote
  #9 (permalink)  
Old 07-19-2008, 06:21 AM
joeu2004
 
Posts: n/a
Re: Division % error

Errata....

On Jul 18, 10:52 pm, I wrote:
> If the old number was zero, any positive change will
> be treated as 100%, and any negative change will be
> treated as -100%. This is an arbitrary choice.
> There is no right answer.


I mean there is no right __mathematical__ answer. I don't know about
GAAP in the US or your jurisdiction.


----- original posting ------

On Jul 18, 10:52*pm, joeu2004 <joeu2...@hotmail.com> wrote:
> On Jul 18, 9:50*pm, marc...@excite.com wrote:
>
> > Thanks, I am thinking maybe this is the way excel
> > calculates!!!!

>
> Excel does not calculate any particular "way". *You tell Excel how you
> want something calculated, and Excel does it. *Whether or not the
> calculation makes sense is entirely up to you.
>
> > (A) $3799.95 is sales for June 2008
> > (B) $-210 is sales for June 2007 [....]
> > So in this case I would like to know in June 2008
> > how many +/- % is it.

>
> Okay, you do indeed have the right idea. *If the more-recent number
> (2008) is in A3 and the older number (2007) is in B3, I think the
> following formula will give you the result you desire:
>
> =IF(B3=0, SIGN(A3), (A3-B3)/ABS(B3))
>
> If the old number was zero, any positive change will be treated as
> 100%, and any negative change will be treated as -100%. *This is an
> arbitrary choice. *There is no right answer.
>
> Otherwise:
>
> 1. A change from -50 to 0 will be a 100% gain, and from -50 to 50 will
> be a 200% change. *Likewise for 50 to 100 and 50 to 150.
>
> 2. A change from 50 to 0 will be a 100% loss (100%), and from 50 to
> -50 will be a 200% loss (-200%). *Likewise for -50 to -100 and -50 to
> -150.
>
> In your case, a change from -210 to 3800 about a 1910% gain.


Reply With Quote
  #10 (permalink)  
Old 07-19-2008, 06:34 AM
marc747@excite.com
 
Posts: n/a
Re: Division % error


wow!!! impressed, works great.
can you tell me what the "SIGN" and the "ABS" do in this formula.

thanks,





On Jul 18, 10:52*pm, joeu2004 <joeu2...@hotmail.com> wrote:
> On Jul 18, 9:50*pm, marc...@excite.com wrote:
>
> > Thanks, I am thinking maybe this is the way excel
> > calculates!!!!

>
> Excel does not calculate any particular "way". *You tell Excel how you
> want something calculated, and Excel does it. *Whether or not the
> calculation makes sense is entirely up to you.
>
> > (A) $3799.95 is sales for June 2008
> > (B) $-210 is sales for June 2007 [....]
> > So in this case I would like to know in June 2008
> > how many +/- % is it.

>
> Okay, you do indeed have the right idea. *If the more-recent number
> (2008) is in A3 and the older number (2007) is in B3, I think the
> following formula will give you the result you desire:
>
> =IF(B3=0, SIGN(A3), (A3-B3)/ABS(B3))
>
> If the old number was zero, any positive change will be treated as
> 100%, and any negative change will be treated as -100%. *This is an
> arbitrary choice. *There is no right answer.
>
> Otherwise:
>
> 1. A change from -50 to 0 will be a 100% gain, and from -50 to 50 will
> be a 200% change. *Likewise for 50 to 100 and 50 to 150.
>
> 2. A change from 50 to 0 will be a 100% loss (100%), and from 50 to
> -50 will be a 200% loss (-200%). *Likewise for -50 to -100 and -50 to
> -150.
>
> In your case, a change from -210 to 3800 about a 1910% gain.


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:51 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108