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 answers

  1. Mike-31 Posted messages 18405 Registration date   Status Contributor Last intervention   5 147
     
    Hello,

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

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

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

      Oh great!

      0
    5. syllee
       

      thank you, I had forgotten this nomenclature

      0