Vlook up value is #N/A

H

Hong

Hello,
My vlookup returns the value #N/A, but I am using the value for other
culculation.
If the vlookup value returns to #N/A, then all my final result is #N/A.

How can I change the #N/A into "0" or blank, so it doesn't affect my final
result.

Thank you in advance.
 
J

JE McGimpsey

Note that ISERROR() will also ignore errors like #VALUE!, #REF!, etc.
which may not be desirable.

In general it's better to keep error trapping as narrow as possible, in
this case:

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))
 
S

Shane Devenshire

Hi,

2003:
=IF(ISNA(VLOOKUP(A1,C1:D10,2,)),"",VLOOKUP(A1,C1:D10,2,))

in 2007:
=IFERROR(VLOOKUP(A1,C1:D10,2,),"")

If this helps, please click the Yes button

Cheers,
Shane Devenshire
 

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

Top