OR and ISNA not giving expected result.

Snypa

New Member
Joined
Nov 1, 2013
Messages
45
I have the following formula:


Code:
=OR(isna(C8), C8="None")
  • When C8 matches neither condition it returns False
  • When C8 = None, it returns True
  • However, when C8 is #NA it returns #NA - and not True
Code:
=OR(isna(C8))

returns True when C8 is #NA

Can anyone offer any insight, am I doing something wrong or how else might I achieve what I want?


Thanks in advance,
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I believe the issue is that it tries evaluating both expressions, and if C8 is #N/A, then C8="None" will also return #N/A.
Try using an IF, in which you can prevent the evaluation of C8 if it is #N/A, i.e.
Code:
=IF(ISNA(C8),TRUE,IF(C8="None",TRUE,FALSE))
 
Upvote 0
I believe the issue is that it tries evaluating both expressions, and if C8 is #N/A, then C8="None" will also return #N/A.
Try using an IF, in which you can prevent the evaluation of C8 if it is #N/A, i.e.
Code:
=IF(ISNA(C8),TRUE,IF(C8="None",TRUE,FALSE))

Okay, that works.
 
Upvote 0
you didn't show your excel version
but ok if IFERROR works for you
have a good day ;)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top