I need to write a formula for a VLOOKUP to put 0 instead of #N/A .

G

Guest

I am trying to write a formula in excel to put a 0 instead of #N/A when my
VLOOKUP formula does not find data in the lookup area.
 
R

Rob Bovey

BBanalyst said:
I am trying to write a formula in excel to put a 0 instead of #N/A when my
VLOOKUP formula does not find data in the lookup area.

The standard way to do this is:

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

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
 
G

Guest

BBanalyst said:
I am trying to write a formula in excel to put a 0 instead of #N/A when my
VLOOKUP formula does not find data in the lookup area.

Try this
=IF(ISERROR(VLOOKUP(A1,B1:D10,2,FALSE))=TRUE,0,VLOOKUP(A1,B1:D10,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

Similar Threads


Top