how do i get exact matches in a vlookup fomrula

S

shark1966

in my vlookup formula, I am finding values that shouldn't have values are
returning the value for the closest match.
 
B

Biff

Set the 4th argument to FALSE or 0:

=VLOOKUP(A1,B1:C10,2,FALSE)

=VLOOKUP(A1,B1:C10,2,0)

Biff
 
S

shark1966

That worked great! Thanks. I am now receiving #N/A where there are no values.
How can I force the N/A to 0???
 
D

Dave Peterson

=if(iserror(vlookup(...)),0,vlookup(...))

If you're using xl2007:
=iferror(vlookup(...),0)
 

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