display negative numbers as zero

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
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

Conditional Printing 2
Average Formula 1
Sequential Numbering 2
Mandatory and optional formula 5
pls. help 1
Help with a pop-up msg 5
Reversing text 11
Help With Formula For Date Comparison 6

Back
Top