exclude vlookup returns for embeded codes

acmiler

New Member
Joined
Jul 13, 2009
Messages
4
I am running a vlookup and need to restrict the search data to an exact match and exclude all other returns which may have an exact match but the text match is embedded within a larger text string.

ie. looking for FRX in the following group:

RB-FRX40
TTFRX
FRX
GH-FRX53
IT-FRX00

vlookup is returning the first code (RB-FRX40) and I need FRX but I cannot seem to restrict the logic.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi. I don't think this formula is capable of matching FRX with RB-FRX40.

Are you saying you think that's what it's doing ?
 
Upvote 0
Yes, that is what it is doing. I have confirmed it. The value returned matches only the first line item. This is Excel 2003 if that helps any.
 
Upvote 0
OK. What value is in A1235 ?
What value is in 'Price List . . . .'!A that you think is being matched ?
 
Upvote 0
Hi,

The value in A1235 is: *FRX (no spaces) and the item it has matched to is: *RB-FRX40 with a returned value from column '3' of 350.00. I tested the returned value by changing the 350.00 value on the Pricelist to 1,549,853.00 (a value which does not exist anywhere else on the spreadsheet) and the returned value in the vlookup also changed to match it. There are 1530 lines in the data array and FRX occurs in various codes 11 times. The value being returned is on the first occurance of FRX which, as you can see, is embedded in a larger code. The one I want is the 3rd occurance and has no other text with it, just the *FRX by itself.
 
Upvote 0
I see.
So, it's NOT actually matching FRX with RB-FRX40.
It's matching *FRX with RB-FRX40.
These are two completely different things.
It's treating the * as a wildcard character, and looking for anything that contains FRX somewhere in the string.
But even then, I don't think it could match *FRX with RB-FRX40.
It could match *FRX* with RB-FRX40.
Is that what it's really doing?
Can you remove the * characters from cell A1235 ?
 
Upvote 0

Forum statistics

Threads
1,215,202
Messages
6,123,625
Members
449,109
Latest member
Sebas8956

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