【问题标题】:Return the value and not #N/A when using IF function to compare使用 IF 函数比较时返回值而不是#N/A
【发布时间】:2023-02-25 01:58:45
【问题描述】:

the two cells are differentwhen using the =IF(F90986=G90986, 1, 0) statement时,我试图返回 1 或 0,但因为它有#N/A,所以它返回了#N/A。

我怎样才能让它返回 0 或 1?

是因为 G90986 是 VLOOKUP 的结果吗?

【问题讨论】:

    标签: excel if-statement cell


    【解决方案1】:

    所以使用 iferror():

    =IF(and(iferror(F90986,0),F90986=G90986), 1, 0))
    

    如果单元格 F90986 包含 #N/A 那么它就不会完成

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-08
      相关资源
      最近更新 更多