Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
If you are using 2007 you can simplify this to =IFERROR(VLOOKUP(A15,'Talla#2'!A1:G1266,5,),0) This is not only shorter, but is is computer efficient, because VLOOKUP is a resource intensive function and using the old way meant that if there was no error Excel calculated the lookup twice! -- If this helps, please click the Yes button. Cheers, Shane Devenshire "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. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Why do you have 2 different ranges:
VLOOKUP(A15,'Talla#2'!A1:G1266,5,false) VLOOKUP(A15,'Talla#2'!A4:G1280,5,false) Here's another one using the same range on both ends: =IF(COUNTIF('Talla#2'!A1:A1266,A15),VLOOKUP(A15,'T alla#2'!A1:G1266,5,0),0) -- Biff Microsoft Excel MVP "stoz" wrote in message ... 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If statement returns zeros | Excel Discussion (Misc queries) | |||
Vlookup to return results of If statement | Excel Worksheet Functions | |||
Excel If statement that is supposed to return a "" instead returns a 0 | Excel Worksheet Functions | |||
Excel 2000 VLOOKUP returns #N/A unless press F2 return on source? | Excel Worksheet Functions | |||
Vlookup of an if statement return | Excel Worksheet Functions |