test for #NA , help please

D

dido22

Hello

I have a column of numbers (eg in column A), some of which are set to #NA by
entering NA() as part of an IF function.. I need to do this to avoid the
cell being plotted on chart . No problem.

In another column I need to test the cell. If it has a number in it I want
to return the number 100, if it is #NA I need to set it to 25.

How do I test a cell for the value #NA ??

I have tried =IF(A1=NA(), 25,100), but just get #NA again.

Help please ?

K
 
S

Stan Brown

I have a column of numbers (eg in column A), some of which are set to #NA by
entering NA() as part of an IF function.. I need to do this to avoid the
cell being plotted on chart . No problem.

In another column I need to test the cell. If it has a number in it I want
to return the number 100, if it is #NA I need to set it to 25.

How do I test a cell for the value #NA ??

I have tried =IF(A1=NA(), 25,100), but just get #NA again.

You didn't tell us which version of Excel you have, but if it's a
fairly recent one the function you want is =ISNA( ). Type
=isna(
in a blank cell and then press Ctrl-A rather than the Enter key to
see if your version has that function.

=IF (ISNA(A1), 25, 100)
 
D

dido22

This works nicely thanks

KK


Stan Brown said:
You didn't tell us which version of Excel you have, but if it's a
fairly recent one the function you want is =ISNA( ). Type
=isna(
in a blank cell and then press Ctrl-A rather than the Enter key to
see if your version has that function.

=IF (ISNA(A1), 25, 100)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Data Validation List (conditional) 2
NA in pivottable list 0
need help 3
Data Validation List 1
Removing #N/A from an "If/Then" statement 4
Date subtraction 1
Converting Text 9
lookup with dropdown 4

Top