N NCMIKE Apr 19, 2004 #1 How can I return a value of zero using a VLOOKUP function instead of #N/A if the formula doesn't find a value?
How can I return a value of zero using a VLOOKUP function instead of #N/A if the formula doesn't find a value?
L Leo Heuser Apr 19, 2004 #2 One way: =IF(ISNA(VLOOKUP(Cell,Rng,Col,False)),0,VLOOKUP(Cell,Rng,Col,False))
P Pete McCosh Apr 19, 2004 #3 Enclose it in an If.. function to trap the error: =Vlookup(a1,a310,2,false) becomes =if(iserror(Vlookup(a1,a310,2,false)),0,Vlookup (a1,a310,2,false)) Cheers, Pete
Enclose it in an If.. function to trap the error: =Vlookup(a1,a310,2,false) becomes =if(iserror(Vlookup(a1,a310,2,false)),0,Vlookup (a1,a310,2,false)) Cheers, Pete