Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Alternative for Vlookup output of #N/A if data not found?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Alternative for Vlookup output of #N/A if data not found?

=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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Alternative for Vlookup output of #N/A if data not found?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Alternative for Vlookup output of #N/A if data not found?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Alternative for Vlookup output of #N/A if data not found?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
alternative to VLOOKUP Thierry Excel Worksheet Functions 2 June 3rd 06 09:48 AM
Vlookup Alternative Needed Rita Palazzi Excel Discussion (Misc queries) 3 March 2nd 06 04:14 PM
Vlookup data wrong if the small value found are same Fanny Excel Discussion (Misc queries) 4 January 11th 06 03:05 AM
ISNA VLOOKUP any data prefixed with a "C7" cannot be found? Mike Jenkins Excel Discussion (Misc queries) 6 December 13th 05 02:20 AM
Nested Vlookup or alternative? scoobydoo99 Excel Worksheet Functions 2 October 28th 05 02:38 PM


All times are GMT +1. The time now is 05:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"