+ Reply to Thread
Results 1 to 3 of 3

pass/fail if value is between two numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2011
    Location
    Worcester, England
    MS-Off Ver
    2007
    Posts
    2

    pass/fail if value is between two numbers

    I need to return a PASS or FAIL if a result is between two numbers.

    I.E IF cell C5 <250 or >300 then FAIL otherwise PASS

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: pass/fail if value is between two numbers

    You can use MEDIAN

    =IF(MEDIAN(250,300,C5)=C5,"Pass","Fail")
    else an AND based test

    =IF(AND(C5>=250,C5<=300),"Pass","Fail")
    or reverse logic and use OR test

    =IF(OR(C5<250,C5>300),"Fail","Pass")

  3. #3
    Registered User
    Join Date
    02-17-2011
    Location
    Worcester, England
    MS-Off Ver
    2007
    Posts
    2

    Re: pass/fail if value is between two numbers

    Brilliant so simple really. Thanks

    Quote Originally Posted by DonkeyOte View Post
    You can use MEDIAN

    =IF(MEDIAN(250,300,C5)=C5,"Pass","Fail")
    else an AND based test

    =IF(AND(C5>=250,C5<=300),"Pass","Fail")
    or reverse logic and use OR test

    =IF(OR(C5<250,C5>300),"Fail","Pass")

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