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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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