INDEX-MATCH with LEFT 10 digits

Morgan_T

New Member
Joined
Aug 9, 2019
Messages
3
I am currently trying to index match with only the first 10 digits of the lookup value.

=index(R:R, MATCH(E2,AQ:AQ,0))
this returns my match if they are exact, the problem is I am working wit data that is not to be modified.

what I need (AQ:AQ) , what I need with extra string(E2), value from same row of match AQ:AQ ( R:R)

=INDEX(R:R, MATCH(LEFT($E2, 10)*1, AQ:AQ, 0))
returns #N/A and I know a match exists.

I also tried below just to drop the index to work and nothing pull a valid match.
=MATCH(LEFT(E2,10),AQ:AQ,0)

Please help!
Thanks,

Morgan
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Put =LEFT(E2,10) in a cell. Copy it. Press CTRL-F. Paste it into the find what box. Click optionsand make sure match entire cell contents is checked. Highlight column AQ. Press find. Does if find anything?
 
Upvote 0
If I understand what you are asking for you just need to add a wildcard to the end of your match Lookup Value =INDEX(R:R, MATCH(LEFT($E2, 10)&"*", AQ:AQ, 0))

This method will only return the first value that meets the 10 digit string. For example if you have the following items: 1234567890A, 1234567890B,
1234567890C it will only match on the first listed value.

Let me know if that works.
 
Upvote 0
If I understand what you are asking for you just need to add a wildcard to the end of your match Lookup Value =INDEX(R:R, MATCH(LEFT($E2, 10)&"*", AQ:AQ, 0))

This method will only return the first value that meets the 10 digit string. For example if you have the following items: 1234567890A, 1234567890B,
1234567890C it will only match on the first listed value.

Let me know if that works.

This worked perfectly, I've never used he wild card. Thanks!
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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