VLookup Part of Text String

Shazz

Board Regular
Joined
Oct 28, 2010
Messages
136
Hi,

Can any one advise me how I look up just the Letters in a code, I have the below code which works fine if I want to look up "ULKY5312" but I just want to lookup the Letters only.

Code:
=VLOOKUP(B5,Project_Approvers,2,TRUE)

Your help would be greatly appreciated.

Shazz
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi - We're going to need more information on this :)

Is it always 4 letters on the left?

If so then you can do;

Code:
=VLOOKUP(Left(B5,4),Project_Approvers,2,TRUE)

If not then if you could post back with as much info as possible that'd be good.
 
Upvote 0
It is always 4 Letters to the left, Annoyingly I cannot upload Examples, I have tried

Code:
[COLOR=#574123]=VLOOKUP(Left(B5,4),Project_Approvers,2,TRUE)[/COLOR]

But this is coming up as an error, Can I PM you a example for you to look at JazzSP8?

Shazz
 
Upvote 0
I think you need an exact match, so the last parameter of VLOOKUP should be FALSE

See if this works
=VLOOKUP(LEFT(B5,4)&"*",Project_Approvers,2,FALSE)

M.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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