Excel中嵌套的IF AND OR

时间:2018-05-23 20:09:52

标签: 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,数据输入B2D2E2

1 个答案:

答案 0 :(得分:0)

=如果(AND(B2 =" SF",D2 = 1)= TRUE,E2 + 0.75,如果(AND(B2 =" SF",D2 = 0.25)= TRUE,E2 + 0.625,如果(AND(B2 =" CW",D2 = 1)= TRUE,E2 + 1,0)))

此致