• If function (97)

    Author
    Topic
    #395828

    Hello, how do I code a formula to achieve my requirments in this scenario:

    I want my cell to return a value of 0 if the calulation from other cells returns a negative number else return the value of those other cells if positive? i.e. in G5 if D5 – D4 is negative return 0 else return the positive value from D5-D4?

    Thanks Darren.

    Viewing 0 reply threads
    Author
    Replies
    • #737560

      In your specific case, I like =MAX(0,D5-D4). If you really prefer IF, then =IF(d5-d4<0,0,d5-d4).

    Viewing 0 reply threads
    Reply To: If function (97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: