+ Reply to Thread
Results 1 to 4 of 4

Formula Help with Pass/Fail function

  1. #1
    Registered User
    Join Date
    02-04-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Formula Help with Pass/Fail function

    Hi all!

    1st post, so I hope I got it in the right section :D

    I'm having some problems getting my whole formula to be recognised by Excel.

    What I have got is:

    =IF(COUNT(E2),IF(SUM(E2)<=40.05,"Pass","Fail"),"enter data"

    basically, telling the sheet to put a Pass/Fail if it meets/doesn't meet this criteria.

    What I need to have also is a formula telling this formula that if it is a Pass under 10 seconds that it needs to say "Null" or "Invalid". I have tried entering this myself but it always shows up as 'my argument is too long'

    Is there a way of telling the formula to do this or would I need to dip inside VB Editor (not my greatest skill) in Excel for this?

    Any help greatly appreciated

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Help with Pass/Fail function

    Give this a try:

    =IF(COUNT(E2),LOOKUP(E2,{0.01,10,40.06},{"Invalid","Pass","Fail"}))

    Or if the cell might really be blank:

    =LOOKUP(E2,{0,0.01,10,40.06},{"","Invalid","Pass","Fail"}))

    The second one takes into account a blank cell without an IF statement.
    Last edited by JBeaucaire; 02-04-2009 at 12:38 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-04-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Talking Re: Formula Help with Pass/Fail function

    Your a life saver :D

    That did it! Thanks alot!

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Help with Pass/Fail function

    Great. Which of the two formulas did you opt for?

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ 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