+ Reply to Thread
Results 1 to 7 of 7

if statement

  1. #1
    Registered User
    Join Date
    10-18-2005
    Posts
    16

    if statement

    I am trying to write a function that looks at a two cells and then gives the appropriate response. what I want it to look at is:

    Grade System Condition Draft Pretension Payout Minimum FOS
    ORQ chain intact survival 1.67

    in the column under condition, I want it to look and if it says "intact" & if under "Minimum FOS" is less than 1.67 I want it to return a value of "FAIL" & if it is "damaged" & less than 1.25 I also want a response of "FAIL" any other case would be considered a "PASS." This is an easy function to write & it works for part of it.

    If the value is intact & less than 1.67 I get "FAIL" for any other case I get "FALSE." I cannot find my error. Can anyone please help me. I have enclosed my function for review.

    IF(G5=0," ",IF(C5="intact",IF(G5<1.67,"fail",IF(C5="damaged",IF(G5<1.25,"fail","pass")))))


    Thanks.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Try this formula.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-18-2005
    Posts
    16
    That didnt work. It only worked for values greater than 1.67. What i need is for excel to look at it & see that if it says "intact", it has to meet a certain criteria & if it sees that it says "damaged," it has to meet a different criteria. And, if it doesn't meet the criteria, then it passes.

    Thanks in advance.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Maybe I am confused. The above formula looks for the following.

    First, it looks at cell G5. If it is > or = 1.67, then it will return "pass".

    Next, if it is < 1.67, if cell C5 is either "intact" or "damaged", then it will return "fail". Any other combination will return "pass".

    Are you asking for something different?

  5. #5
    Registered User
    Join Date
    10-18-2005
    Posts
    16
    What I need it to look for is cell C5. If cell C5 is "intact" then it moves to cell G5. If cell G5 is less than 1.67, it returns "FAIL." If cell C5 is "damaged," then cell G5 will fail if it is less than 1.25.

    Is that clear?

  6. #6
    Registered User
    Join Date
    10-18-2005
    Posts
    16
    NEVERMIND, I got it figured out. Thanks.

  7. #7
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Sorry for the misunderstanding. Try this:
    Please Login or Register  to view this content.

+ 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