ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Vlookup and #N/A (https://www.excelbanter.com/excel-discussion-misc-queries/173911-vlookup-n.html)

Joe

Vlookup and #N/A
 
I am deducting two tables and I am using V-Lookup. However, in one of the
tables I dont 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


Dave Peterson

Vlookup and #N/A
 
=if(isna(vlookupformula#1),0,vlookupformula1)
- if(isna(vlookupformula#2),0,vlookupformula2)

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



Joe wrote:

I am deducting two tables and I am using V-Lookup. However, in one of the
tables I dont 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


--

Dave Peterson


All times are GMT +1. The time now is 04:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com