#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lucas
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lucas
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"