Partial Matching and copying over a separate column when a match is found

sco315

New Member
Joined
Jun 3, 2015
Messages
6
Hello. I have two columns I and J that have some model numbers in them. Model J has model numbers that are longer than those in column I. I want to have another column F that looks at I2 and searches column J for a partial match (7 characters) and once it finds one, it copies the date from column K into that new column.
New Date (F)Model #(I)New Model #(J)Old Date(K)
16AKU4812AJO304/19/2015
BLS2I78V0NTBAB-335-2N6/30/2013
11AI249RCSL-O*42518/13/2014
HDF48*G56SADE-042JA9/7/2015
OM89-KK916AJL48A012/18/2013
BP017-5911111AI249OP912/21/2011
354ASIRIFA-9871011/17/2013
RPPE-F45618AMYE1610/15/2014
4HGP*56ER541SUQ160193L6/10/2015

<tbody>
</tbody>

So in this example, the code entered in F4 would look at I4 (11AI249) and search all of column J until it finds something that matches the first 7 characters to I4. Once it does (J7) it copies the date adjacent to it into F4.

If someone could please help me, I would greatly appreciate it. All I have so far is =MATCH("*"&LEFT(I2,7)&"*",J2:J464,0) but that is very wrong.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I appreciate the suggestion, but unfortunately it needs to be coded. The columns are actually being populated from other files and the new dates will need to update themselves whenever I open this spreadsheet too.
 
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