【问题标题】:How to use IF Statement when there is #N/A Error#N/A 错误时如何使用 IF 语句
【发布时间】:2018-08-17 14:40:07
【问题描述】:

我有一个公式如下:

=IF(RC[1]=0,"matched",IF(RC[1]>0,"Short booked",IF(RC[1]<>0.01,"Excess booked",IF(RC[1]=#N/A,"GIT",0))))'

我无法将 GIT 作为文本而不是单元格中的 #N/A 错误,有什么解决方案。

【问题讨论】:

    标签: excel if-statement error-handling excel-formula


    【解决方案1】:

    尝试使用 IFERROR 包装器。

    =iferror(IF(RC[1]=0, "matched", IF(RC[1]>0, "Short booked", IF(RC[1]<>0.01, "Excess booked", 0))), "GIT")
    

    但是,我仍然看到一个逻辑漏洞问题,因为我很确定 IF(RC[1]&lt;&gt;0.01,... 不会被联系到。逻辑进展表明应该是..., IF(RC[1]&lt;0, "Excess booked", ...。

    【讨论】:

      猜你喜欢
      • 2022-11-12
      • 2017-04-28
      • 2017-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-01
      • 2011-09-22
      • 1970-01-01
      相关资源
      最近更新 更多