Excel: negative result equals zero

Solved
jelumic -  
 syllee -
Hello,
My problem is relatively simple,
I would like the result of a subtraction to appear as zero when it is negative (for example 0-2=-2).
Thank you for your help.
jelumic
Configuration: Windows XP Internet Explorer 6.0

4 réponses

Mike-31 Posted messages 18405 Registration date   Status Contributeur Last intervention   5 145
 
Hello,

Look at this formula that references cells A1 =0 and B1 =2

=IF(A1-B1<0,0,A1-B1)

A+
54
jelumic
 
Okay, that works,
Thank you.
0
Flo
 
Thank you, I had forgotten this formula which is really useful.
0
Raige29
 
Thank you very much for this formula.
0
NOXIII
 

Oh great!

0
syllee
 

thank you, I had forgotten this nomenclature

0