Vlookup Fetching Error #N/A

zaska

Well-known Member
Joined
Oct 24, 2010
Messages
1,046
Hi all ,

I am having problem with vlookup. It is fetching #N/A error eventhough the lookup table matches with most part of the lookupvalue.

I don't know whether if other formulas can be used for this scenario.

I have uploaded the excel sheet here..

http://www.4shared.com/document/99RepnDk/Lookup.html


Thank you for anyhelp.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Sir,

The lookup table is sorted in ascending order and the following formula still turning error #N/A

=Vlookup(Left(A2,5),J:K,2,0)


Example:

<table width="285" border="0" cellpadding="0" cellspacing="0"><col width="285"><tr height="17"> <td class="xl24" style="height:12.75pt;width:214pt" width="285" height="17">SonaKoyoSteeringSystems
</td> </tr></table>
<table width="285" border="0" cellpadding="0" cellspacing="0"><col width="285"><tr height="17"> <td class="xl24" style="height:12.75pt;width:214pt" width="285" height="17">SonaKoyoSterSys


</td> </tr></table>
 
Upvote 0
=Vlookup(Left(A2,5),J:K,2,0)

with 0 as the last parameter = EXACT MATCH otherwise return #N/A

if you are going to use a partial match you need -1 or TRUE

either TRUE or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is return
 
Upvote 0
Sir,

I tried the above formulas still getting errors & fuzzyvlookup logic is difficult for me.


Example :

<table width="285" border="0" cellpadding="0" cellspacing="0"><colgroup><col width="285"></colgroup><tbody><tr height="17"> <td class="xl24" style="height:12.75pt;width:214pt" width="285" height="17">SonaKoyoSteeringSystems</td> </tr></tbody></table>
<table width="285" border="0" cellpadding="0" cellspacing="0"><colgroup><col width="285"></colgroup><tbody><tr height="17"> <td class="xl24" style="height:12.75pt;width:214pt" width="285" height="17">SonaKoyoSterSys


</td> </tr></tbody></table>I tried =Vlookup(Left(A1,5),J:K,2,TRUE)

But i got incorrect data even though the first five Values match in the above example.
 
Upvote 0
Sir,

I tried the above formulas still getting errors & fuzzyvlookup logic is difficult for me.


Example :

<TABLE border=0 cellSpacing=0 cellPadding=0 width=285><COLGROUP><COL width=285></COLGROUP><TBODY><TR height=17><TD style="WIDTH: 214pt; HEIGHT: 12.75pt" class=xl24 height=17 width=285>SonaKoyoSteeringSystems</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width=285><COLGROUP><COL width=285></COLGROUP><TBODY><TR height=17><TD style="WIDTH: 214pt; HEIGHT: 12.75pt" class=xl24 height=17 width=285>SonaKoyoSterSys



</TD></TR></TBODY></TABLE>I tried =Vlookup(Left(A1,5),J:K,2,TRUE)

But i got incorrect data even though the first five Values match in the above example.

It looks like you should go with the fuzzy method...

Does one of the following...
Code:
=VLOOKUP(LEFT(A1)&"*",J:K,2,0)
 
=LOOKUP(REPT("z",255),CHOOSE({1,2,3},"Not Found",
     VLOOKUP(LEFT(A1)&"*",J:K,2,0),VLOOKUP(A1,J:K,2,0)))
 
=LOOKUP(9.99999999999999E+307,CHOOSE({1,2,3},0,
     VLOOKUP(LEFT(A1)&"*",J:K,2,0),VLOOKUP(A1,J:K,2,0)))
do any better?
 
Upvote 0
Thank you sir,

I was finally able to finish my work with all your help.


Have a nice day
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top