Vlookup and #N/A result

G

Guest

I have a master list of data and a shorter list (subset of the master) of
additional data. When I use vlookup including the FALSE argument, I get #N/A
for all data lines that don't exist in the subset list. When I use the TRUE
argument, I get incorrect results.

Both lists are sorted in the same order. The lookup value is alphanumeric.

How can I use a vlookup function and not get an #N/A result?
Once I get an #N/A result, I can't do any other mathematical functions on
that data.
 
G

Guest

You could try something like this:

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

This first checks to see if your VLOOKUP formula returns an #N/A error, and
if so returns a blank. Otherwise, it returns the result of your VLOOKUP
formula.

HTH,
Elkar
 
D

Dave Peterson

If there's no match, what do you want to see?

Make the cell look blank?
=if(isna(vlookup(...)),"",vlookup(...))

return a 0?
=if(isna(vlookup(...)),0,vlookup(...))
 

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