Vlookup and #N/A

J

Joe

I am deducting two tables and I am using V-Lookup. However, in one of the
tables I don’t have all the headings as in table 1. When I subtract then I
get #N/A. To correct this, I am using ISERR but it returns False.

Formula I am using

=VLOOKUP($B81,$B$8:$L$32,COLUMNS($C$8:L$8),0)-VLOOKUP($B81,$B$37:$L$58,COLUMNS($C$37:L$37),0)

With Error formula

=ISERR(VLOOKUP($B81,$B$8:$L$32,COLUMNS($C$8:L$8),0)-VLOOKUP($B81,$B$37:$L$58,COLUMNS($C$37:L$37),0))

What can I do to make sure that when there is a value in the first tables,
brings that value.

Regards,
jose
 
D

Dave Peterson

=if(isna(vlookupformula#1),0,vlookupformula1)
- if(isna(vlookupformula#2),0,vlookupformula2)

If you're using xl2007, you could use =iferror().
 

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

Top