嵌套IF和AND语句

时间:2018-05-16 15:09:49

标签: if-statement excel-formula formula

我试图将IF语句嵌套在一起,这样当它读取数据时,它就能够将它分类为3种不同的类型。到目前为止The screenshot显示了我的公式,但它返回了VALUE!我输入之后

1 个答案:

答案 0 :(得分:0)

由于您没有包含您的公式,这应该会有所帮助:

=IF(ISNUMBER(MATCH(C6,{"A","B","C"},0)),"Slip...",IF(ISNUMBER(MATCH(C6,{"D","E","F"},0)),"Personal...","Not"))

根据您的评论,您的公式应为:

=IF(ISNUMBER(MATCH(C6,{"Slip Trip Fall","Fall down Stairs","Knock, Trip or Fall within bus"},0)),"Slip Trip Fall", IF(ISNUMBER(MATCH(C6,{"Alighting incident","Boarding incident","Struck by object","Personal Injury Event","Wheelchair / Buggy incident"},0)),"Personal Injury Event",IF(ISNUMBER(MATCH(C6,{"Collision","Collision incident"},0)),"Personal Injury Event",FALSE)))