Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Dec 2004
    Location
    Stoney Creek, Ontario
    Posts
    196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If statement (2003)

    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

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: If statement (2003)

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

    Steve

  3. #3
    Gold Lounger
    Join Date
    Feb 2004
    Location
    Cape Town, RSA
    Posts
    3,444
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: If statement (2003)

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

  4. #4
    2 Star Lounger
    Join Date
    Dec 2004
    Location
    Stoney Creek, Ontario
    Posts
    196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: If statement (2003)

    Wonderful! I learn so much from this forum...now if I could only remember everything I learn <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    Thanks Steve and Rudi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •