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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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