2016-07-14 90 views
0

我花了很長時間才能使這個函數工作,現在我需要它返回列中的空白我把我的公式,如果B,D,或E,細胞是空白感謝您對此事的關注做參考,這將列「F」可以去嵌套的IF(或(和excel函數

=IF(OR(AND(B2="SPC",D2="BLC",E2="SSD 1"),(AND(B2="SGT",D2="ALC",E2="SSD 2")),(AND(B2="SSG",D2="SLC",E2="SSD 3")),(AND(B2="SFC",D2="SLC",E2="SSD 4"))),"Yes","No") 

回答

0

因爲評論總是隱藏字符添加到長公式:。

=IF(LEN(B2)*LEN(D2)*LEN(E2),IF(SUMPRODUCT((B2={"SPC","SGT","SSG","SFC"})*(D2={"BLC","ALC","SLC","SLC"})*(E2="SSD "&{1,2,3,4})),"Yes","No"),"") 

會做我的選擇......儘管你需要的是將你的配方包裝成如下形式:

=IF(OR(B2="",D2="",E2=""),"",[your formula])