"#N/A" Result From VLOOKUP Formula

J

jose3106

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.
 
K

Kevin B

You could use the following IF:

IF(ISERROR(VLOOKUP(xx,xx,xx)),0,VLOOKUP(xx,xx,xx))
 
G

Gord Dibben

=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
 
Top