Vlookup Exact match instead of wildcard

Graham182

New Member
Joined
Jan 31, 2010
Messages
31
i'm trying to do i Vlookup

but i'm looking up for example

50212 but where i'm trying to find it, it looks like this
50212sd-23-2-09

is there anyway i can do



=vlookup(a2, (left, 5) A5-C5, 3, false)



Also is it possible to put a count in so it counts how many characters are in the original cell like 50212 is 5 and how do i put this in the Vlookup?



=vlookup(a2, (left, (count, a2) A5-C5, 3, false)


is there anyway to get an exact match. as i've use the wildcard and i've had

450212 and it found that rather than 50212?

Thanks for any help you can give :)
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=64 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=17 width=64></TD></TR></TBODY></TABLE>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Assuming that you want to match the characters in G2.

Try this:

=VLOOKUP(G2&"*",$A$1:$B$4,3,FALSE)

Kelbo
 
Upvote 0
it works perfect for what i want for some of them

but when both start with the same numerics
it seems to bring up the first one right or wrong.
like

125463
12546

and i'm looking for 12546 it will bring back 125463 if you get what i mean
 
Upvote 0
try extracting the numbers to another column and use that instead
use
Code:
=LOOKUP(9.99E+307,--MID(A1,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&1234567890)),ROW(INDIRECT("1:"&LEN(A1)))))
dragged down then look for exact match with vlookup or index/match
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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