Excel函數公式如下
F6=IF(OR(F7={"Pass","FYI","N/A"}),"Pass","Fail")
以上公式可判斷 F7若為 Pass 或 FYI 或 N/A, 則再F6儲存格顯示Pass,若非則顯示Fail
請問F7儲存格 應該如何修改為判斷F7~F13多數儲存格皆要使用此規則?
不待招式用老
再包一層 IF
先判斷優先條件(有任一列為「空白」)
若不符合
再走「原判斷邏輯」
=IF(COUNTIF(F7:F13,"")>0,"",IF(COUNTIF(F7:F13,"Pass")+COUNTIF(F7:F13,"FYI")+COUNTIF(F7:F13,"N/A")=7,"Pass","Fail"))
底下將「原判斷邏輯」標示出來較易閱讀
=IF(COUNTIF(F7:F13,"")>0,"",IF(COUNTIF(F7:F13,"Pass")+COUNTIF(F7:F13,"FYI")+COUNTIF(F7:F13,"N/A")=7,"Pass","Fail")
)
選我正解
請問我若要再加一個條件有NS為判斷式,依照海棉寶寶的公式要如何修改?
f6有空格/NS/PASS/FAIL的結果
f6=IF(COUNTIF(F7:F13,"")>0,"",IF(COUNTIF(F7:F13,"Pass")+COUNTIF(F7:F13,"FYI")+COUNTIF(F7:F13,"N/A")=7,"Pass","Fail"))