+ Reply to Thread
Results 1 to 5 of 5

Pass,Fail or blank

  1. #1
    Registered User
    Join Date
    12-10-2014
    Location
    CA, USA
    MS-Off Ver
    2013
    Posts
    3

    Pass,Fail or blank

    I am trying to calculate a result of test as a Pass, Fail or blank(if no numbers entered in the columns E,F,I,and L). I have tried multiple formulas to check if the result of (M15) =IFERROR((E15-L15-I15)/F15,"0") to see if the value is 5 or greater (PASS), less than 5 (FAIL) or leave blank as no data was entered. I tried this =IF(M15>5,"PASS",IF(M15<5,"FAIL",IF(M15>0,"Pass "))) and several other ways, but the !DIV/0 seems to be the problem. Any ideas??

    I even tried =IF(M15>5,"PASS") and the blank Iferror(!DIV/0) return a PASS value
    Capture.JPG
    Last edited by DougHarty; 12-11-2014 at 02:10 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Pass,Fail or blank

    M15 should not give you a #Div/0 error since you have an IFERROR in it.

    =IF(M15="0", "", IF(M15>=5, "Pass", "Fail"))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-10-2014
    Location
    CA, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Pass,Fail or blank

    It worked!! Thanks.

  4. #4
    Registered User
    Join Date
    07-13-2018
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    8
    Quote Originally Posted by ChemistB View Post
    M15 should not give you a #Div/0 error since you have an IFERROR in it.

    =IF(M15="0", "", IF(M15>=5, "Pass", "Fail"))
    Does that work for you?

    What about for 2 or more column sir
    excel.PNG
    Last edited by J.carolino86; 07-13-2018 at 10:21 AM. Reason: add image

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Pass,Fail or blank

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need a formula for pass/fail based on no. of Y answers but automatically fail if 3a is N
    By Researcher1111 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-15-2013, 10:20 PM
  2. [SOLVED] Pass And Fail
    By thong127 in forum Excel General
    Replies: 9
    Last Post: 06-11-2013, 05:17 PM
  3. pass/fail if value is between two numbers
    By markdsmith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2011, 09:04 AM
  4. Matching 2 columns of data Pass Fail or Blank
    By testpilot in forum Excel General
    Replies: 1
    Last Post: 03-05-2009, 09:50 PM
  5. [SOLVED] pass fail
    By Tricia in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-20-2005, 12:06 PM

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