• If statement (2003)

    Author
    Topic
    #446517

    How do I say this in excel-ese? If the difference between A2 and B2 is a negative number, do nothing, if A2 contains text, do nothing, otherwise subtract the two cells.

    Thank you in advance!
    Deb

    Viewing 1 reply thread
    Author
    Replies
    • #1085908

      How about? (I presumed by “difference” you meant A2-B2 and not B2-A2)
      =IF(ISTEXT(A2),””,IF(A2-B2<0,"",A2-B2))

      Steve

      • #1085918

        Wonderful! I learn so much from this forum…now if I could only remember everything I learn smile

        Thanks Steve and Rudi

    • #1085910

      Try this: =IF(ISTEXT(A2),”Nothing”,IF(A2-B2<0,"Nothing",A2-B2))

    Viewing 1 reply thread
    Reply To: If statement (2003)

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

    Your information: