Vlookup

mbunting

New Member
Joined
Nov 24, 2010
Messages
41
Is it possible to create a lookup where the data you are trying to lookup doesn't exist in the range so it returns the number 0 rather than NA. I an using the returned data from the lookup in a colum that is being totaled and the NA ruins the sum total of the column??
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
try = If(ISNA(vlookup here),0,vlookup here for 2003 and earlier

or for 2007 and later

=Iferror(Vlookup here),0)
 
Upvote 0
use an if statement - here is an example
Code:
=IF(ISNA(VLOOKUP(D5737,'[SAPEmps 091211.xls]Sheet1'!$K:$K,1,FALSE)),0,VLOOKUP(D5737,'[SAPEmps 091211.xls]Sheet1'!$K:$K,1,FALSE))
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top