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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

skywriter

Well-known Member
Joined
Feb 15, 2014
Messages
1,642
See if this works:

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

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,651
Messages
5,838,576
Members
430,557
Latest member
MK15

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
Top