IF和三个条件的函数

时间:2015-03-26 07:18:04

标签: windows excel

获得所需结果的IF / AND功能是什么?

IF  B18 = "Low" And B9="AS4000" Output  "10m-30m"
IF  B18 = "Med" And B9="AS4000" Output  "25m-60m"
IF  B18 = "High"    And B9="AS4000" Output  "50m-100m"

3 个答案:

答案 0 :(得分:1)

您需要同时使用IF和AND功能,例如

=IF(AND(B18="Low",B9="AS4000"),"10m-30m","")

答案 1 :(得分:1)

=IF(B9="AS4000";if(B18 = "Low";"10m-30m";if(B18 = "Med";"25m-60m";"50m-100m"));"")

答案 2 :(得分:0)

对我来说,数组查找比多个嵌套IF

更清晰
=IF(B9="AS4000",INDEX({"10m-30m","25m-60m","50m-100m"},
            MATCH(B18,{"Low",    "Med",    "High"    },0)))