#num

P

Pammy

I have a formula to give a 0 instead of an error. Some of the calculations
give me a #num instead of a 0, . Is there something I could add to the
formula below to either give a 0 or blank but no #num.


IF(ISNA(VLOOKUP(Y192,longv,2,FALSE)),0,VLOOKUP(Y192,longv,2,FALSE))
 
M

Michael

Use iserror instead of ISNA
IF(ISERROR(VLOOKUP(Y192,longv,2,FALSE)),0,VLOOKUP(Y192,longv,2,FALSE))
 
P

porter444

Try this instead:

=IF(ISERROR(VLOOKUP(Y192,longv,2,FALSE),"0",VLOOKUP(Y192,longv,2,FALSE)
 

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