A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I display negative numbers a "0"?



 
 
Thread Tools Display Modes
  #1  
Old November 28th, 2009, 04:24 PM posted to microsoft.public.excel.newusers
Ken
external usenet poster
 
Posts: 954
Default how do I display negative numbers a "0"?

If a formula gives me a negative number, I want to disply it as zero. Can
you show me how to make that work? In other words, if a formula creates a
value of
"-14", I want it to show up as "0" in the cell.
  #2  
Old November 28th, 2009, 04:35 PM posted to microsoft.public.excel.newusers
FloMM2
external usenet poster
 
Posts: 189
Default how do I display negative numbers a "0"?

Ken,
If your formula is as follows:
"=A1-B1"

You would need to edit as follows:
"=IF((A1-B1)0,(A1-B1),0)"

What this tells excel is, if A1-B1 is greater than 0 (True), then give me
that result. If A1-B1 is greater than 0 (False), then give me a 0.
hth

"Ken" wrote:

If a formula gives me a negative number, I want to disply it as zero. Can
you show me how to make that work? In other words, if a formula creates a
value of
"-14", I want it to show up as "0" in the cell.

  #3  
Old November 28th, 2009, 06:54 PM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default how do I display negative numbers a "0"?

One way...

=MAX(0,your_formula)

=MAX(0,B1-A1)

--
Biff
Microsoft Excel MVP


"Ken" wrote in message
...
If a formula gives me a negative number, I want to disply it as zero.
Can
you show me how to make that work? In other words, if a formula creates a
value of
"-14", I want it to show up as "0" in the cell.



  #4  
Old November 29th, 2009, 06:02 PM posted to microsoft.public.excel.newusers
Joe User[_2_]
external usenet poster
 
Posts: 757
Default how do I display negative numbers a "0"?

"Ken" wrote:
if a formula creates a value of "-14",
I want it to show up as "0" in the cell.


If you want to change the value to zero, then:

=MAX(0, A1-A2)

where A1-A2 represents your formula.

If you want the value to remain -14, and you only want to change the way it
is displayed(!), then use a Custom format. The right Custom format to use
depends on what your original format is. If it is General, then:

General;\0;General

PS: I am assuming that you meant the formula creates the number -14, not
the string "-14". Right?


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

"Ken" wrote in message
...
If a formula gives me a negative number, I want to disply it as zero.
Can
you show me how to make that work? In other words, if a formula creates a
value of
"-14", I want it to show up as "0" in the cell.


 




Thread Tools
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 On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:56 PM.


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