我有一张excel表,其中三种浏览器类型存在三列。
如果所有三个浏览器都通过了测试用例,则Result列应标记为Pass with Green color。三个浏览器列的值可以是: 通过,失败,进行中,待定,超出范围
我们如何通过工作表公式实现这一目标? 详细示例如下:
Web Browser1 Web Browser2 Web Browser3 Result
Pass Pass Pass Pass(Green)- Only If all status is 'Pass'
Pass Pass Fail Fail(Red)- If any 1 fails then result will be fail
TBD In progress Pass In Progress(Yellow)- If any 1 is 'In Progress', result is 'In Progress'
尝试类似:
=IF(COUNTIF(H2:J2,"Pass")=3,"PASS",IF(COUNTIF(H2:J2, "Fail")>=1, "FAIL",
IF(COUNTIF(H2:J2, "In Progress")>=1, "IN PROGRESS", IF(COUNTIF(H2:J2,
"TBD")>=1, "TBD", IF(COUNTIF(H2:J2, "Out Of Scope")=3, "OUT OF SCOPE", "")))))