INDEX + MATCH Part Text of range values

hro5e

Board Regular
Joined
Jan 13, 2012
Messages
60
I have a range of name values in SHEET 1, COLUMNS A&B:

Sheet 1AB
1DEL01CV
2DEL02CV
3DEL03SS
4DEL04CV
5DLM101FD

<tbody>
</tbody>











I have a second range of description values in SHEET 2,COLUMN C:

SHEET 2ABC
1DEL02.START
2DEL02.STOP
3DEL02.PUSH
4DEL02.PULL
5DLM101.START

<tbody>
</tbody>











How can I in SHEET 2 COLUMNS A&B, INDEX SHEET 1 COLUMNs A&B and INDEX SHEET 2 COLUMN C and MATCH part of the value and insert COLUMN A's values into COLUMN B that *part match* COLUMN C.

Giving the final results:


SHEET 2ABC
1DEL02CVDEL02.START
2DEL02CVDEL02.STOP
3DEL02CVDEL02.PUSH
4DEL02CVDEL02.PULL
5DLM101FDDLM101.START

<tbody>
</tbody>











As you can see columns A & B have been automatically filled in because part of column C value matches values in SHEET 1 column A.

Any help would be great.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Results:

Data Range
A
B
C
D
1
SHEET 2​
A​
B​
C​
2
1​
=LEFT(D2,FIND(".",D2)-1)​
=VLOOKUP(Sheet2!B2,Sheet1!$B$2:$C$6,2,FALSE)​
DEL02.START​
3
2​
=LEFT(D3,FIND(".",D3)-1)​
=VLOOKUP(Sheet2!B3,Sheet1!$B$2:$C$6,2,FALSE)​
DEL02.STOP​
4
3​
=LEFT(D4,FIND(".",D4)-1)​
=VLOOKUP(Sheet2!B4,Sheet1!$B$2:$C$6,2,FALSE)​
DEL02.PUSH​
5
4​
=LEFT(D5,FIND(".",D5)-1)​
=VLOOKUP(Sheet2!B5,Sheet1!$B$2:$C$6,2,FALSE)​
DEL02.PULL​
6
5​
=LEFT(D6,FIND(".",D6)-1)​
=VLOOKUP(Sheet2!B6,Sheet1!$B$2:$C$6,2,FALSE)​
DLM101.START​
 
Upvote 0
Thanks for posting,

Although the descriptive data in Column C is not always structured the same.

It can vary for example:

DEL02.START
MISCHECK_NO FOR DEL02
BAGCOUNT:DEL02
DEL02_CC
DEL02-Counting

So I can't use your suggested formula (LEFT of ".")

Any ideas.
 
Upvote 0

Forum statistics

Threads
1,216,123
Messages
6,128,975
Members
449,480
Latest member
yesitisasport

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