View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Vlookup Returning #n/a

To return a 0:
=if(isna(vlookup(...)),0,vlookup(....))

To return an empty string:
=if(isna(vlookup(...)),"",vlookup(....))

If you're using xl2007, you could use:
=iferror(vlookup(...),0)
or
=iferror(vlookup(...),"")



Toolbar Confused wrote:

I have a large workbook that I am using vlookup in. It is returning #n/a wher
e there is no data to pull. I am trying to add another formula to pull a
range of numbers from the main sheet. It works fine as long as there are no
NA's in the data I am pulling from. I need to know how to change the formula
to not return the N/A but not ruin the formula if the data is there to be
pulled.

Thanks in advance for any help


--

Dave Peterson