"#N/A" Result From VLOOKUP Formula

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

Guest

I need a way to return a value of 0 when a formula results in a #N/A value.
Can this be done? My problem is where I have a VLOOKUP and the lookup value
does not exist.
 
You could use the following IF:

IF(ISERROR(VLOOKUP(xx,xx,xx)),0,VLOOKUP(xx,xx,xx))
 
=IF(ISNA(VLOOKUP Formula)),0,VLOOKUP Formula))

With actual formula..............

=IF(ISNA(VLOOKUP(A1,$B$1:$C$32,2,FALSE)),"",VLOOKUP(A1,$B$1:$C$32,2,FALSE))


Gord Dibben MS Excel MVP
 

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

VLOOKUP returning #N/A result 2
Use formula result in vlookup 1
Remove #n/a in vlookup to sum results 6
VLOOKUP - 0 instead of # N/A 8
VLookup 1
Vlookup #N/A 5
VLOOKUP 2
Replace #N/A with 0 1

Back
Top