vlookup #N/A

D

Darren Savage

I'm running the VLOOKUP function on an array and am using
the optional FALSE formula to give me an exact match.
However this leads to #N/A being shown when the match
isn't exact. Is there a way of getting this #N/A to show 0
in the cell instead?
thx
 
P

Peo Sjoblom

One way

=IF(ISNUMBER(MATCH(A1,Sheet2!A2:A100,0)),VLOOKUP(A1,Sheet2!A2:B100,2,FALSE),
0)
 
D

Darren

thanks - will try it out
-----Original Message-----
One way

=IF(ISNUMBER(MATCH(A1,Sheet2!A2:A100,0)),VLOOKUP (A1,Sheet2!A2:B100,2,FALSE),
0)

--

Regards,

Peo Sjoblom





.
 
P

Peo Sjoblom

Try again

=IF(ISNUMBER(MATCH(A1,Sheet2!A2:A100,0)),VLOOKUP(A1,Sheet2!A2:B100,2,FALSE),
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