View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default how to remove #n/a error in excel vlookup b/c value is not fou

If you're using Excel 2007 try one of these:

=IFERROR(VLOOKUP(.....),"")
=IFERROR(VLOOKUP(.....),0)

Note those will trap *all* errors, not just #N/A.


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
It worked fine using Excel 2007.

Thank you very much!

"T. Valko" wrote:

Try one of these:

Returns a blank:

=IF(ISNA(VLOOKUP(.....)),"",VLOOKUP(.....))

Returns a 0:

=IF(ISNA(VLOOKUP(.....)),0,VLOOKUP(.....))

--
Biff
Microsoft Excel MVP


"B. Franklin Saunders" <B. Franklin
wrote in message
...
I'm using vlookup in excel to pull select data from a worksheet. The
problem
is that the value I'm seeking isn't always in the table array. So, I
get
a
#n/a error. The #n/a then prevents me from summing the data that I'm
collecting using the vlookup. How do I make the #n/a go away or equal
zero
so I can sum the data?