#1   Report Post  
rtillt
 
Posts: n/a
Default percent formulas

I am receiving inaccurate calculations for the following:

A B C
315 1575 500%
1 315 31500%

using formula b/a and formatiing c for %. C1 is correct, where C2 is not.
The acutal entry for A1 is 0, but get an error using 0. I also have where A
is greater than B and not receiving a negative value.

Thanks


--
Lisa
  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

Lisa,

31500% is correct for C2.

If you want to show a -0- if the denominator is -0-, put this formula in
C1...
=if(A1=0,0,b1/a1)

<<I also have where A is greater than B and not receiving a negative value.

I -THINK- what you want is a formula such as...
=IF(A1=0,0,IF(B1=A1,B1/A1,IF(B1=0,0,-A1/B1)))

HTH,
--
Gary Brown

Please rate this posting if it is helpful to you.


"rtillt" wrote:

I am receiving inaccurate calculations for the following:

A B C
315 1575 500%
1 315 31500%

using formula b/a and formatiing c for %. C1 is correct, where C2 is not.
The acutal entry for A1 is 0, but get an error using 0. I also have where A
is greater than B and not receiving a negative value.

Thanks


--
Lisa

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
percent formulas Ron Coderre Excel Worksheet Functions 0 May 20th 05 07:21 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Formulas Stan Excel Worksheet Functions 3 January 21st 05 02:58 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 08:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"