replacing a #na

G

Guest

I have a vlookup and when there is nothing for it to lookup as of yet, I get
a #Na, is there an =if iserror fomula I can add to the vlookup that will let
me add a "0" instead of the #na?
 
G

Guest

You can do something along these lines:

=IF(ISERROR(VLOOKUP(A1,$K1:$L21,2),0,VLOOKUP(A1,$K1:$L21,2))

If would prefer nothing replace the 0 with "", or "Your Message Goes Here".
 
P

Peo Sjoblom

Use ISNA

=IF(ISNA(your_formula),0,your_formula)

it's generally better to use ISNA in a case like this since one might want
to know if there are other errors involved and ISNA only finds #N/A errors
 

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