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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,215,360
Messages
6,124,489
Members
449,166
Latest member
hokjock

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