【发布时间】: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
当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
所以使用 iferror():
=IF(and(iferror(F90986,0),F90986=G90986), 1, 0))
如果单元格 F90986 包含 #N/A 那么它就不会完成
【讨论】: