If statement Excel中嵌套的IF和OR

If statement Excel中嵌套的IF和OR,if-statement,excel-formula,nested,If Statement,Excel Formula,Nested,如何编写以下公式: if B2 = "SF" and D2 = "1" then H2 = E2 + .75 else if B2 = "SF" and D2 = ".25" then H2 = E2 + .625 else if B2 = "CW" and D2 = "1" then H2 = E2 + 1 我希望我的答案在H2中,数据输入到B2,D2和E2,=if(和(B2=“SF”,D2=1)=TRUE,E2+0.75,if(和(B2=“SF”,D2=0.25)=

如何编写以下公式:

if B2 = "SF" and D2 = "1"
    then H2 = E2 + .75
else if B2 = "SF" and D2 = ".25"
    then H2 = E2 + .625
else if B2 = "CW" and D2 = "1"
    then H2 = E2 + 1
我希望我的答案在
H2
中,数据输入到
B2
D2
E2
,=if(和(B2=“SF”,D2=1)=TRUE,E2+0.75,if(和(B2=“SF”,D2=0.25)=TRUE,E2+0.625,if(和(和(B2=“CW”,D2=1)=TRUE,E2+1,0)))


关于

坚持这一点在
H2
=if(AND(b2=“sf”,d2=1),E2+.75,if(AND(b2=“sf”,d2=.25),E2+.625,if(AND(b2=“CW”,d2=1),E2+1)”),
或者:
=if(b2=“sf”,if(d2=1,E2+.75,if(d2=.25,E2+.625)”,if(AND(AND(b2=“CW”,d2=1),E2+1)”,
或者
=if(b2=“sf=*”)*(d2=.75)*(E2+.625)+(B2=“CW”)*(D2=1)*(E2+1)