display negative numbers as zero

A

Andrea

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
 
Top