Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eliminate the Vlookup #N/A result in Excel

Status
Not open for further replies.

jrobin5881

Technical User
Mar 10, 2004
228
0
0
US
Good Morning,

Is there a way to eliminate the #N/A value when a vlookup does not find a match? Other then adding another column and doing another calculation on the vlookup results. I want the vlookup to look through my array and if it does not find a value I want a 0 to appear in the cell. The #N/A is messing up subsequent calculations.

Sample:
=(VLOOKUP($A2,FOTSUM!$A$2:$E$725,5,FALSE))+D2
 
=if(iserror((VLOOKUP($A2,FOTSUM!$A$2:$E$725,5,FALSE))+D2),0,(VLOOKUP($A2,FOTSUM!$A$2:$E$725,5,FALSE))+D2)

The iserror checks to see if an error occued, if so it responds with a zero, else it responds with the formula result.

[pc]

Graham
 
=IF(ISNA((VLOOKUP($A2,FOTSUM!$A$2:$E$725,5,FALSE))+D2),"",(VLOOKUP($A2,FOTSUM!$A$2:$E$725,5,FALSE))+D2)

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Wow are you guy's fast!!! Thank you both - saved again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top