Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
Is there an alternative for the Vlookup function output of #N/A when data is not found? The reason I ask is because I need to use an If function based on the Vlookup output if the data is not found such as =IF(K2="#N/A","SPARE",) but the function does not recognize #N/A. Thanks! Jaret |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=if(isna(k2),"it's an n/a error","it's not an n/a error")
But you can do the same kind of thing in your =vlookup() formula: =if(isna(vlookup(...)),"it's an error",vlookup(...)) And if you're using xl2007, you can look at =iferror() in excel's help. mcmilja wrote: Hello, Is there an alternative for the Vlookup function output of #N/A when data is not found? The reason I ask is because I need to use an If function based on the Vlookup output if the data is not found such as =IF(K2="#N/A","SPARE",) but the function does not recognize #N/A. Thanks! Jaret -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Your formula is looking for the text string #N/A (the quote marks tell it to
look for a text string). Try =IF(ISNA(K2),"SPARE",) -- David Biddulph "mcmilja" wrote in message ... Hello, Is there an alternative for the Vlookup function output of #N/A when data is not found? The reason I ask is because I need to use an If function based on the Vlookup output if the data is not found such as =IF(K2="#N/A","SPARE",) but the function does not recognize #N/A. Thanks! Jaret |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank You!
"David Biddulph" wrote: Your formula is looking for the text string #N/A (the quote marks tell it to look for a text string). Try =IF(ISNA(K2),"SPARE",) -- David Biddulph "mcmilja" wrote in message ... Hello, Is there an alternative for the Vlookup function output of #N/A when data is not found? The reason I ask is because I need to use an If function based on the Vlookup output if the data is not found such as =IF(K2="#N/A","SPARE",) but the function does not recognize #N/A. Thanks! Jaret |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks! This did the trick...
"Dave Peterson" wrote: =if(isna(k2),"it's an n/a error","it's not an n/a error") But you can do the same kind of thing in your =vlookup() formula: =if(isna(vlookup(...)),"it's an error",vlookup(...)) And if you're using xl2007, you can look at =iferror() in excel's help. mcmilja wrote: Hello, Is there an alternative for the Vlookup function output of #N/A when data is not found? The reason I ask is because I need to use an If function based on the Vlookup output if the data is not found such as =IF(K2="#N/A","SPARE",) but the function does not recognize #N/A. Thanks! Jaret -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
alternative to VLOOKUP | Excel Worksheet Functions | |||
Vlookup Alternative Needed | Excel Discussion (Misc queries) | |||
Vlookup data wrong if the small value found are same | Excel Discussion (Misc queries) | |||
ISNA VLOOKUP any data prefixed with a "C7" cannot be found? | Excel Discussion (Misc queries) | |||
Nested Vlookup or alternative? | Excel Worksheet Functions |