View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sheeloo[_3_] Sheeloo[_3_] is offline
external usenet poster
 
Posts: 1,805
Default Return 0 when if statement with VLOOKUP returns#N/A

Try
=IF(ISNA(VLOOKUP(A15,'Talla#2'!A1:G1266,5,FALSE)), "Not
Found",VLOOKUP(A15,'Talla#2'!A4:G1280,5,FALSE))

when you get it working you can replace "Not Found" with 0 or ""

You were missing couple of ) in your formula...
One each after both FALSE)

"stoz" wrote:

I am using a formula to return #N/A when a value cannot be found on a lookup
or the actual value if found. I keep getting the message I have a formula
error which then highlights "0" as the error in the formula. Formula being
used is;
=IF(ISNA(VLOOKUP(A15,'Talla#2'!A1:G1266,5,false),0 ,VLOOKUP(A15,'Talla#2'!A4:G1280,5,false), or if I use ,"", to return blank I get the same error message.
Can anyone see where I might be going wrong. Using Excel 2003.