Partial Vlookup Wildcard not finding match but returning #N/A

acejackhammer

New Member
Joined
Jul 4, 2018
Messages
1
Hello there. I have two worksheets. One with partial data (example = 80151006) and the other worksheet with entire data (example = Lif HCCCLAIMPMT 186027 0063143 TRN *1* 0080151006*124389766). I used the formula =VLOOKUP(A7&"*",database!$A$2:$A$227,1,FALSE). And all I get is the #NA in the formula cell. I've tried to change the format to the source data to general, text, number on both worksheets and still get that dreaded #N/A.

What am I doing wrong?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi acejackhammer

When you use FALSE in the VLOOKUP function, that means you are looking for EXACT matches.

What I think you should do is (if the data is the same, that is the string you are trying to find is allways starting at character position x, and is y characters long, that you use the MID() function as the lookup value.

If not, that is the data is not always the same, use the FIND() or SEARCH() functions to get the VLOOKUP(‘ function search term.

hope this helps.

Sorry, I meant to add this: you need to make sure that you are searching for the same type of data. That is text or string vs. numbers. The VLOOKUP() will need to have the dataset sorted as well.
 
Last edited:
Upvote 0
try this:
Code:
=LOOKUP(1,0/FIND(8015100,A1:A6),B1:B6)
A1:A6 stored text lik "Lif HCCCLAIMPMT 186027 0063143 TRN *1* 0080151006*124389766", B1:B6 stored what you want to return.
 
Upvote 0
You need wildcarding for 'contains', not just 'starts with..

=VLOOKUP("*"&A7&"*",database!$A$2:$A$227,1,FALSE)

Another option:

=LOOKUP(9.99999999999999E+307,SEARCH(A7,database!$A$2:$A$227),database!$A$2:$A$227)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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