2017-07-05 120 views
0

嗨,我想寫這樣的IF函數。嵌套,如果和公式

=IF(AND(E3="Epyllion",J3="7"),".70","") 

但結果始終顯示爲0而不是.70。

我給這家功能點是,

IF E3="Epyllion" AND J3="7" Then .70 AND IF E3="Epyllion" AND J3="5" Then ".72" AND IF E3="Epyllion" AND J3="3" Then ".80" 

有人可以幫我寫這個公式。

回答

0

以下公式適用於我。 (AND(E3 =「Epyllion」,J3 = 7),70,IF(AND(E3 =「Epyllion」,J3 = 5),72,IF(AND(E3 =「Epyllion」,J3 = 3),80, 「NULL」)))

0

你的公式應該是

=IF(AND(E3="Epyllion",J3=7),".70","") 

除非Cell J3爲文本格式。

隨着問題的公式中提到的所有條件可以寫成

=IF(E3="Epyllion",IF(J3=7,".70",IF(J3=5,".72","0.8"))) 

提供,你只需要7,3,5Cell J3。如果您有這三個值更然後使用

=IF(E3="Epyllion",IF(J3=7,".70",IF(J3=5,".72",IF(J3=3,".80",""))),"") 
0

F2細胞

=IF(AND(E2="Epyllion",J2=9),".90", 
    IF(AND(E2="Epyllion",J2=7),".70", 
    IF(AND(E2="Epyllion",J2=5),".50", 
    IF(AND(E2="Epyllion",J2=3),".30","")))) 

enter image description here

試試這個公式