Index and Match based on partial match

newbie188

New Member
Joined
Feb 16, 2021
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
Hi. so I'm trying to populate a column in one sheet with info from another sheet. But the lookup value is slightly different in the target sheet. in the sheet I want to bring data into, the lookup value omits the leading 0. in the lookup sheet, it contains the leading 0 but omits the last six digits . can I use a % or * or something to indicate that as long as the lookup array has, say, six matching characters in order, it will bring in the data required?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You mean something like this:
Book1
ABCDEF
11234567891030
21
30123456
42
53
Sheet1
Cell Formulas
RangeFormula
B1B1=MATCH(0&LEFT(A1,6),F1:F5,0)


Or maybe:
Book1
ABCDEF
11234567891030
21
3012345699999
42
53
Sheet1
Cell Formulas
RangeFormula
B1B1=MATCH("*"&LEFT(A1,6)&"*",F1:F5,0)
 
Upvote 0
You mean something like this:
Book1
ABCDEF
11234567891030
21
30123456
42
53
Sheet1
Cell Formulas
RangeFormula
B1B1=MATCH(0&LEFT(A1,6),F1:F5,0)


Or maybe:
Book1
ABCDEF
11234567891030
21
3012345699999
42
53
Sheet1
Cell Formulas
RangeFormula
B1B1=MATCH("*"&LEFT(A1,6)&"*",F1:F5,0)
perfect! thanks so much Georgiboy! I was able to incorporate this into an Index and match. just what i needed. thanks again :)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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