Excel中的4个嵌套IF条件未被接受“您为此函数输入了太多参数”

时间:2016-11-21 17:22:40

标签: excel if-statement

Excel:如果我想按顺序应用条件,我有3个(如果是,否则,如果是)

=IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<4;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+4;"NOT_TRUE";)

=IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<7;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+7;"NOT_TRUE";)

=IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<9;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+9;"NOT_TRUE";)

我把它们放在一起(嵌套)(彼此在里面)像这样

=IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<4;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+4;"NOT_TRUE";IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<7;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+7;"NOT_TRUE";IF(AND(VALUE(RIGHT(TEXT(INT(A9);"0");1))<9;A9>30);INT(A9)-RIGHT(TEXT(INT(A9);"0");1)+9;"NOT_TRUE";)))

现在Excel给了我一条错误消息,说“你为这个函数输入了太多的参数”

我该怎么办?

1 个答案:

答案 0 :(得分:2)

这对我有用。也许你在错误的地方有一个支架?

=IF(AND(VALUE(RIGHT(TEXT(INT(A12),"0"),1))<4,A12>30),INT(A12)-RIGHT(TEXT(INT(A12),"0"),1)+4,IF(AND(VALUE(RIGHT(TEXT(INT(A9),"0"),1))<7,A9>30),INT(A9)-RIGHT(TEXT(INT(A9),"0"),1)+7,IF(AND(VALUE(RIGHT(TEXT(INT(A9),"0"),1))<9,A9>30),INT(A9)-RIGHT(TEXT(INT(A9),"0"),1)+9,"NOT_TRUE")))