Vlookup when no value match

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I am trying to find if a value exists in a list. However, I need the result
of the Vlookup to give me a meaningfull value(Not #NA) if Vlookup is
unsuccessful in finding a match, as I am using this value for a IF statement.
Any idea?
Thanks
 
versions prior to 2007

=IF(ISNA(vlookup formula),"No match",vlookup formula)

In 2007

=IFERROR(vlookup formula,"No match")
 
Hello,
I am trying to find if a value exists in a list. However, I need the result
of the Vlookup to give me a meaningfull value(Not #NA) if Vlookup is
unsuccessful in finding a match, as I am using this value for a IF statement.
Any idea?
Thanks

How do you define a "meaningful value"?

#NA has a meaning -- it means there was no exact match!

If you want some other value, just use an IF formula to output what you want
when VLOOKUP outputs #NA.

=IF(ISNA(your_formula),"meaningful value", your_formula)
--ron
 

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

Back
Top