display negative numbers as zero

G

Guest

can i display a negative number as a zero?

thus if my formula reads: if(a4>a5, a2, a4-a2) but a4-a2 cannot equal a
negative number? lowest it can be is zero. this formula appears on multiple
workbooks, thus it cannot just be if(a4>a5, a2,0).

thnaks.
 
D

Dave Peterson

maybe...

=if(a4>a5, a2, max(0,a4-a2))


can i display a negative number as a zero?

thus if my formula reads: if(a4>a5, a2, a4-a2) but a4-a2 cannot equal a
negative number? lowest it can be is zero. this formula appears on multiple
workbooks, thus it cannot just be if(a4>a5, a2,0).

thnaks.
 
N

Niek Otten

Hi Andrea,

I don't understand the text of you question, but I do understand the heading: "display negative values as zero".
Format |Cells|Number tab|Custom, in the Type box, enter: 0;"0"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


| can i display a negative number as a zero?
|
| thus if my formula reads: if(a4>a5, a2, a4-a2) but a4-a2 cannot equal a
| negative number? lowest it can be is zero. this formula appears on multiple
| workbooks, thus it cannot just be if(a4>a5, a2,0).
|
| thnaks.
|
| --
| Andrea
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Mandatory and optional formula 5
Help with a pop-up msg 5
Help With Formula For Date Comparison 6
Reversing text 11
pls. help 1
Sequential Numbering 2
counta formula 4
IF & AND combination not working 5

Top