Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.misc
BJ BJ is offline
external usenet poster
 
Posts: 51
Default Vlookup Help

Hi Ben

If you are attempting to locate a lookup that is not in your array's lookup
column you will get an answer of #N/A.

There is a function within Excel - ISNA(value) - that can address this issue
and yes you could address it with an IF statement. The ISNA function is
"TRUE" if the value is #N/A or "ISNA."

So really your goal as I understand it is when the lookup is not in my array
- that is, whenever I get the #N/A answer - I want to show the term "MISSING"

Your IF statement (which is made up of a logical test and then a result if
that test is true and a result if that test is false - IF(logical test, value
if true, value if false) - would like this:

Your logical test would be ISNA(value) - where the value is your lookup
statement.
Your value if ISNA is true would be "MISSING"
Your value if ISNA is false would be your lookup statement

=IF(ISNA(VLOOKUP(A14,[Book2.xls]T01!$A$8:$AB$731,28,FALSE),"MISSING",VLOOKUP(A14,[Book2.xls]T01!$A$8:$AB$731,28,FALSE))

Try that, it should work.

BJ

"Ben" wrote:

Put simply, Yes.

However, i was just wondering if there was some way to change the output of
vlookup when it is unable to find any data.

For example, i just want to change the "0" when no data is found to say
"Missing".

I checked on the MS office site regarding If statments and looked at other
posts regarding dynamic statments and found that i am having problems.

I would assume that this statment would work as the MS site explains...
http://office.microsoft.com/en-us/ex...091181033.aspx

I beleive i correctly perform an IF statment...

If(A10="0","Missing","")

However, when i throw on the end (and it is the linking bit)...

=If(A10="0","Missing","")*VLOOKUP(A14,[Book2.xls]T01!$A$8:$AB$731,28,FALSE)

So, what am i doing wrong and why please?

Regards,

Ben

"BJ" wrote:

So Ben have all your questions been answered or do you still need some help?

 
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
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 03:32 PM.

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

About Us

"It's about Microsoft Excel"