如何在Excel中的1个单元格中嵌套函数?

时间:2018-10-03 09:19:28

标签: excel

我在excel中的表格

enter image description here

=IF(ISBLANK(F2),"INPUT CHECK DUE",IF([@[CHECK DUE]]<=TODAY(),"FOR DEPOSIT",([@[CHECK DUE]]-TODAY()&" Day(s) remaining")))

及以上是我在状态栏上的代码。现在,我尝试合并一个函数,该函数将在每次填写备注列时将状态从FOR DEPOSIT更改为DEPOSITED。任何人都可以帮助或提出想法。谢谢。

1 个答案:

答案 0 :(得分:2)

您难道不能将它嵌套在另一个IF中?

=IF(ISBLANK(F2),"INPUT CHECK DUE",IF([@[CHECK DUE]]<=TODAY(),IF([@[remarks]<>"","DEPOSITED","FOR DEPOSIT"),([@[CHECK DUE]]-TODAY()&" Day(s) remaining")))

=IF(ISBLANK(F2),
    "INPUT CHECK DUE",
    IF([@[CHECK DUE]]<=TODAY(),
       IF([@[remarks]<>"",
          "DEPOSITED",
          "FOR DEPOSIT"
         ),
       ([@[CHECK DUE]]-TODAY()&" Day(s) remaining")
      )
   )