Nested IF and VLOOKUP functions

  • Thread starter Thread starter Cheryl
  • Start date Start date
C

Cheryl

I'm using the VLOOKUP function to return an exact value or #N/A, if no
value is found. I am trying to use the IF function to then convert
the error value of #N/A to a zero (0) where #N/A exists or just insert
the appropriate number using VLOOKUP. I'm hoping that someone can
help me identify where I'm going wrong. I am not experienced using
Excel functions but have read up on the nesting, IF and VLOOKUP
functions via HELP. I'm using Excel 2000. Here's what I have so far:
=IF(VLOOKUP(Sheet1!A21,'Docs'!$A$4:$B$93,2,FALSE)="#N/A","0",VLOOKUP(Sheet1!A21,'Docs'!$A$4:$B$93,2,FALSE))

Thank you in advance for your help.

Cheryl
 
=IF(ISNA(Your_Formula),0,Your_Formula)

Your_Formula being VLOOKUP(Sheet1!A21,'Docs'!$A$4:$B$93,2,FALSE)
 
Try something like this instead





=IF(ISNUMBER(MATCH(Sheet1!A21,Docs!$A$4:$A$93,0)),VLOOKUP(Sheet1!A21,Docs!$A
$4:$B$93,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

Similar Threads


Back
Top