+ Reply to Thread
Results 1 to 2 of 2

Thread: IF formula

  1. #1
    Forum Contributor
    Join Date
    08-31-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    198

    IF formula

    Hi all, I am trying to return a comment with below logic..if Cell A2 is equal 0 and cell B2 is less than 5000 or more than -5000 then comment = "OK"..

    I think i am just missing few pieces..any help would be greatly appreciated

    =IF(A2 = 0 AND (B2 < 5000 OR >-5000) "OK"

    Thanks so much
    Last edited by donyc; 09-07-2010 at 04:33 PM. Reason: Thanks!

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: IF formula

    Hi

    =IF(AND(A2=0,ABS(B2)<5000),"OK","")

    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0