vlookup

H

HJ

is there a way for a vlookup formula to return a blank cell if it is unable
to find a match in the list?
 
A

akphidelt

Check to see if the vlookup shows up as an error... so it would look like this

=If(Iserror(Vlookup()),"",Vlookup())
 
D

Dave Peterson

=if(isna(vlookup(...)),"",if(vlookup(...)="","",vlookup(...))))

or

=if(iserror(1/len(vlookup(...)),"",vlookup(...))

And xl2007 has added an =iferror(), too.
 
D

Dave

Hi,
If your VLOOKUP is returning the wrong information, you've probably omitted
the 4th argument. If you don't put in the 4th argument as ,FALSE then if
VLOOKUP doesn't find what you've asked for, it just goes for the closest
match.
If you do put in the ,FALSE then if VLOOKUP can't find what you've asked
for, it will return an error, which you can use as described in the other
replies.
Regards - Dave.
 

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