ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   NA() (https://www.excelbanter.com/excel-worksheet-functions/69389-na.html)

lucas

NA()
 
Actually I have 1 more question ;-). Let's say that in cell A1 I can have
values "yes", "no" and "#N/A". I wanna set up a formula which will say that
if A1 is different from #N/A then show 1, if not then 0. But there is sth
strange about this #N/A neither of my formulas if(A1="#N/A";0;1) or
if(A1=NA();0;1) works.

lucas

Niek Otten

NA()
 
=IF(ISNA(A1);0;1)

--
Kind regards,

Niek Otten

"lucas" wrote in message
...
Actually I have 1 more question ;-). Let's say that in cell A1 I can have
values "yes", "no" and "#N/A". I wanna set up a formula which will say
that
if A1 is different from #N/A then show 1, if not then 0. But there is sth
strange about this #N/A neither of my formulas if(A1="#N/A";0;1) or
if(A1=NA();0;1) works.

lucas




Ron Coderre

NA()
 
Try something like this:

=IF(ISNA(A1),0,1)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"lucas" wrote:

Actually I have 1 more question ;-). Let's say that in cell A1 I can have
values "yes", "no" and "#N/A". I wanna set up a formula which will say that
if A1 is different from #N/A then show 1, if not then 0. But there is sth
strange about this #N/A neither of my formulas if(A1="#N/A";0;1) or
if(A1=NA();0;1) works.

lucas


lucas

NA()
 
Great! This one helps as well. Thanks Ron!

"Ron Coderre" wrote:

Try something like this:

=IF(ISNA(A1),0,1)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"lucas" wrote:

Actually I have 1 more question ;-). Let's say that in cell A1 I can have
values "yes", "no" and "#N/A". I wanna set up a formula which will say that
if A1 is different from #N/A then show 1, if not then 0. But there is sth
strange about this #N/A neither of my formulas if(A1="#N/A";0;1) or
if(A1=NA();0;1) works.

lucas



All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com