Match Last 6 digits of Cell

Kirstym1918

New Member
Joined
Dec 17, 2017
Messages
45
Hi,

Was wondering if anyone could show me how to get this formula below to: only match the last 6 digits of the cell BA5, rather than an exact match, Is this possible using this formula below or would I need VLOOKUP?

=IFERROR(INDEX(HB_Rota!$H$3:$NH$80,MATCH(Mon!BA5,HB_Rota!$B$3:$B$86,0),MATCH(Mon!$R$1,HB_Rota!$H$2:$NH$2,0)),"")

Many Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try
=IFERROR(INDEX(HB_Rota!$H$3:$NH$80,MATCH(right(Mon!BA5,6),HB_Rota!$B$3:$B$86,0),MATCH(Mon!$R$1,HB_Rota!$H$2:$NH$2,0)),"")
 
Upvote 0
Perhaps:

=IFERROR(INDEX(HB_Rota!$H$3:$NH$80,MATCH("*"&RIGHT(Mon!BA5,6),HB_Rota!$B$3:$B$86,0),MATCH(Mon!$R$1,HB_Rota!$H$2:$NH$2,0)),"")
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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