SOLVED

IF Formula question

Copper Contributor

Hello,

 

I current have a formula I am using in SharePoint list that work great (see below), but I need to add in additional if statements which are creating failures.

 

Working formula:

=IF(ISBLANK([Date Completed]),"",IF([Audit Rating]>79,"Pass","Fail"))

 

I have a list that has a column that displays a Pass/Fail depending on the the Audit Rating listed in another column.  This is generated from a series of scores listed in additional columns and calculated into the Audit Rating. I want to add an additional statement(s) that says that if any of the columns of scores is a "0" then there should be an automatic failure. Even if the score is above the 79 specified.

 

Any ideas on how to make this work?? I tried the formula below with no luck.

 

Failing Formula:

=IF(ISBLANK([Date Completed]),"",IF([Audit Rating]>79,"Pass","Fail"),IF([5S Rating]=0,"Fail","Pass"),IF([Documentation Rating]=0,"Fail","Pass"))

 

6 Replies

@SLBMetrology Use below formula, it should work for you:

=IF(ISBLANK([Date Completed]), "", IF(OR([5S Rating] = 0, [Documentation Rating] = 0), "Fail", IF([Audit Rating] > 79, "Pass", "Fail")))

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Thank you for your help.

 

The formula you suggested did not fail, but it didn't give me the result I was looking for. When I tested it and added the 0 in for the Documentation Rating with the Audit Rating scare of 80 it did not change the status to Fail. Any thoughts??

@SLBMetrology

  1. Was the [Date Completed] blank/empty for this record/item? 
  2. What is the data type of [5S Rating]=0 and [Documentation Rating] columns? 
1. No it was not blank
2. They are 'Single line of text"
best response confirmed by SLBMetrology (Copper Contributor)
Solution

@SLBMetrology In case of single line of text, use below formula:

=IF(ISBLANK([Date Completed]), "", IF(OR([5S Rating] = "0", [Documentation Rating] = "0"), "Fail", IF([Audit Rating] > 79, "Pass", "Fail")))
Worked perfectly!! I cannot thank you enough. I knew this would be easy for the right person. Much appreciated!! Have an amazing day!!!!
1 best response

Accepted Solutions
best response confirmed by SLBMetrology (Copper Contributor)
Solution

@SLBMetrology In case of single line of text, use below formula:

=IF(ISBLANK([Date Completed]), "", IF(OR([5S Rating] = "0", [Documentation Rating] = "0"), "Fail", IF([Audit Rating] > 79, "Pass", "Fail")))

View solution in original post