Error Value in Logical Test

rambollet

New Member
Joined
Mar 12, 2002
Messages
18
What is the syntax for entering the error value #N/A within a logical test, as in =IF(G2=#N/A),0,G2).

I've tried entering it with and without "" but no improvement.

Any error value can be returned as 0.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
On 2002-03-14 10:33, rambollet wrote:
What is the syntax for entering the error value #N/A within a logical test, as in =IF(G2=#N/A),0,G2).

I've tried entering it with and without "" but no improvement.

Any error value can be returned as 0.

=IF(ISNA(G2),0,G2)
This message was edited by Aladin Akyurek on 2002-03-14 10:41
 
Upvote 0
Thanks so much....again. Less complicated than what I eventually came up with.

Before I read your reply I discovered ERROR.TYPE function and ERROR.TYPE return values and was able to use it to denote #N/A in the logical argument, as in
IF(ERROR.TYPE(G2)=7,0,G2), where 7 is the error return value for #N/A.
(Not that you didn't know but for the benefit of readers who are less gifted as myself)
 
Upvote 0
On 2002-03-14 11:38, rambollet wrote:
Thanks so much....again. Less complicated than what I eventually came up with.

Before I read your reply I discovered ERROR.TYPE function and ERROR.TYPE return values and was able to use it to denote #N/A in the logical argument, as in
IF(ERROR.TYPE(G2)=7,0,G2), where 7 is the error return value for #N/A.
(Not that you didn't know but for the benefit of readers who are less gifted as myself)

A Tip: Once you located the Help topic for the ERROR.TYPE worksheet function you could have clicked on the "See Also" link in the upper left hand corner. This would have presented you with a list of related functions which included the ISNA worksheet function.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,974
Members
448,537
Latest member
Et_Cetera

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