+ Reply to Thread
Results 1 to 5 of 5

Help with IF function - nesting

  1. #1
    Registered User
    Join Date
    09-13-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007/10
    Posts
    11

    Help with IF function - nesting

    Can anyone please help with the following problem?
    I want to set up an IF function such that if a value falls within +1 and -1 the result is "OK", if not the result is "ERROR".
    Cannot seem to get this correct.
    Many thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Help with IF function - nesting

    Hi

    Try this:

    =IF(AND(A1>-1,A1<1),"OK","ERROR")
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Registered User
    Join Date
    09-13-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007/10
    Posts
    11

    Re: Help with IF function - nesting

    Thank you - that has helped enormousley!

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Help with IF function - nesting

    You r welcome ....

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help with IF function - nesting

    Or

    =IF(ABS(A1<1),"OK","ERROR")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.6.0 RC 1