View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave F Dave F is offline
external usenet poster
 
Posts: 2,574
Default IF VLOOKUP Nested function

Use this syntax:

=IF(ISERROR(VLOOKUP([your criteria])),"",VLOOKUP([your criteria]))

"IF the VLOOKUP returns an error, THEN blank, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


"Paul LeBlanc" wrote:

I have a formula that returns a lookup value
=VLOOKUP(A10,VarietyLookUpTable!$A$2:$C$56,2,FALSE )
but when I try to make it so that there is no value in the cell if the
reference cell is blank
=IF(A12,VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56, 2,FALSE),"")
It only works if the cell is blank, if there is a value in the cell which is
formatted as text I get the #VALUE! instead of the usual result