Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Dividing - Negative Number by Zero

"Jim" wrote:
Thanks. What I'm going to use so I can quickly identify -% is the
following;
=IF(ISERROR(T3/S3),"n/a",(T3/S3)) which I believe Fred was trying to tell
me last evening.


Actually, Fred suggested:

=IF(S3=0, "n/a", T3/S3)

But if you have IFERROR (Excel 2007), you could simply modify your original
formula as follows:

=IFERROR(T3/S3, "n/a")


----- original message -----

"Jim" wrote in message
...
Thanks. What I'm going to use so I can quickly identify -% is the
following;
=IF(ISERROR(T3/S3),"n/a",(T3/S3)) which I believe Fred was trying to tell
me
last evening.

"JoeU2004" wrote:

"Jim" wrote:
Looking for a solution of dividing a negative number by zero to show
a result of a negative percentage.


You cannot divide anything by zero, negative or positive.


For Example;
T32=-1.47
S32=0.00
Current formula = =IFERROR(T32/S32,0) resulting in a 100% value


Hmm, that should result in 0%, not 100%.


However I would like the result to show a negative %.


Zero cannot be signed, unless you display it as text (e.g. "-0%").

But if you want plus/minus 100%, which is typical when reporting gains
and
losses, you can do the following:

=IFERROR(T32/S32, SIGN(T32))

formatted as Percentage. Note that SIGN() returns -1, 0 and 1 for
negative,
zero and positive values. So when S32 is zero, this will return -100%,
0%
and 100% depending on T32.

Is that what you want?

If not, then provide examples of what you for the three values of T32.



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
how can i use a whole number after dividing? dbarc Excel Discussion (Misc queries) 4 April 11th 09 12:19 PM
Formulas when dividing with negative numbers Performance Nashbar Excel Worksheet Functions 1 August 30th 05 11:50 PM
Dividing by unknown to get a number bundyloco Excel Worksheet Functions 5 August 14th 05 03:44 PM
2003= negative number&2004= negative number How Do I Calculate gro Jason Excel Worksheet Functions 1 January 14th 05 05:24 PM
number format keeps dividing by 100 Frank Kabel New Users to Excel 0 December 29th 04 09:48 PM


All times are GMT +1. The time now is 01:16 PM.

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

About Us

"It's about Microsoft Excel"