Forum Discussion
SLBMetrology
Apr 15, 2021Copper Contributor
IF Formula question
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"))
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")))
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.
- SLBMetrologyCopper Contributor
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??
- Was the [Date Completed] blank/empty for this record/item?
- What is the data type of [5S Rating]=0 and [Documentation Rating] columns?