Using “If cell contains #N/A” as a formula conditi

2019-03-14 05:55发布

I need help on my Excel sheet. How can I declare the following IF condition properly?

if A1 = "n/a" then C1 = B1
else if A1 != "n/a" or has value(int) then C1 = A1*B1

4条回答
对你真心纯属浪费
2楼-- · 2019-03-14 05:58

Input the following formula in C1:

=IF(ISNA(A1),B1,A1*B1)

Screenshots:

When #N/A:

enter image description here

When not #N/A:

enter image description here

Let us know if this helps.

查看更多
Ridiculous、
3楼-- · 2019-03-14 06:02

"N/A" is not a string it is an error, try this:

=if(ISNA(A1),C1)

you have to place this fomula in cell B1 so it will get the value of your formula

查看更多
Viruses.
4楼-- · 2019-03-14 06:09

A possible alternative approach in Excel 2010 or later versions:

AGGREGATE(6,6,A1,B1)

In AGGREGATE function the first 6 indicates PRODUCT operation and the second 6 denotes "ignore errors"

[untested]

查看更多
【Aperson】
5楼-- · 2019-03-14 06:11

You can also use IFNA(expression, value)

查看更多
登录 后发表回答