如何让Excel忽略N/As

问题描述 投票:0回答:1

我有一个嵌套的 if/or/and 语句,否则可以工作,但如果行中存在任何 N/A,则给我“假”值。我希望它完全忽略 N/A (所以,如果我要求它告诉我是否 A2<3 and B2<3, and A2=1 but B2 contains N/A, I still want it to tell me the statement is 'true').

我已经尝试遵循有关如何处理 N/As 的帮助页面,但它们要么不起作用,要么为 N/As 分配不同的值。请帮忙!

excel if-statement excel-formula na
1个回答
0
投票

如果你想在#N/A上有TRUE,你需要替换

B2<3 --> OR(B2<3,NOT(ISNA(B2)))

如果你想在#N/A上有FALSE,你需要替换

B2<3 --> AND(B2<3,NOT(ISNA(B2)))
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.