Index/Match to Right 5 characters - Array

cleokep

New Member
Joined
Jul 15, 2014
Messages
19
Hi, wonder if anyone can help with this Index/Match based on Matching Right 5 characters?

Example Data in Sheet 1:
A
B
C
Name
ID
Location
Mark Smith
41264
Mike Smith
73894

<tbody>
</tbody>

Example Data in Sheet 2:
A
B
P
BH
Location
Address
Department1
Department45
Baltimore
100 Sycamore St
Production:41264
Kansas City
400 Main St
Engineering:73894

<tbody>
</tbody>

Here is my formula typed into Sheet 1, Column C that doesn't seem to work:
{=INDEX(Sheet2!$A$2:$A$500,MATCH(B2,RIGHT(Sheet2!$P$2:$BH$500,5),0))}

Results I want to see in Sheet 1:
A
B
C
Name
ID
Location
Mark Smith
41264
Baltimore
Mike Smith
73894
Kansas City

<tbody>
</tbody>

Thanks for any insight you can give!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
See if this works:

Code:
=LOOKUP(TEXT(B2,0),RIGHT(Sheet2!$P$2:$BH$500,5),Sheet2!$A$2:$A$500)
 
Upvote 0

Forum statistics

Threads
1,214,253
Messages
6,118,505
Members
448,829
Latest member
ARehn

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