VLOOKUP

G

Guest

Hi,

As you know, when VLOOKUP uses "FALSE" for Range_lookup and no exact match
is made, Excel produces an output "#N/A".

This is messing up formulae that are based on the output of cells where this
formula is used, where then produce the same "#N/A".

I have tried using an If function in conjunction with VLOOKUP but it did not
produce the desired effect. Can someone please tell me if this is possible
(and I have made a mistake) or is there some other way.

Thanks in advance for any feedback.

Sam
 
J

JE McGimpsey

Before one can tell you what is possible with something other than an
(unspecified) IF() function, it's necessary for you to actually say what
"the desired effect" is...

You can return a null string, e.g.:

=IF(ISNA(MATCH(A1,J:J,FALSE)),"", VLOOKUP(A1,J:K,2,FALSE))

or you can change "" to 0 if you need a zero value, etc.
 
G

Guest

The IF statement should look something like this:

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

This states that if your VLOOKUP formula returns the #N/A error, then return
a 0, if not, then return the results of your VLOOKUP formula. You could
replace the 0 with "" depending what you want in place of the #N/A error.

HTH,
Elkar
 

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