Match Value With Extra Characters

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I need to match the batch number in column C with the batch number in column B.

If it matches, then it should populate the value in column D.

The problem is the batch number in column B is actually the same as column C but it has last 3 extra characters.

Is there any way I can create a formula that would read the number in column C and match it with column B even though the last 3 characters are different?

Excel Workbook
BCD
3Batch Number 1Batch Number 2Match
4VB123456-33VB123456#N/A
5VB123466/22VB123466#N/A
Sheet1


Appreciate help. Thanks in advance.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is the part you're looking up always the first 8 digits of the code?

Perhaps..

=VLOOKUP(LEFT(B4,8),C:C,1,0)

Hope this helps...
 
Upvote 0
Jonmo and Andrew,

My apologies.

I left out some important details.

If column C matches column B, then it should populate value in column D.

Excel Workbook
BCDE
3Batch Number 1Batch Number 2DateMatch
4VB123456-33VB1234566/16/2008 
5VB123466/22VB1234666/15/2008 
Sheet1


I tried incorporating both formula's but it did not return the correct value.

Appreciate your assistance. Thank you for your time and patience.
 
Upvote 0
You almost had it..

Vlookup(C4&"*",B:D,3,0)

OR

INDEX(D:D,MATCH(C4&"*",B:B,0))
 
Upvote 0
Jonmo1,

Thank you for your solution.

What does the &"*" mean in the formula ?

Thank you again for your time and patience.
 
Upvote 0

Forum statistics

Threads
1,214,868
Messages
6,122,005
Members
449,059
Latest member
mtsheetz

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