VLOOKUP - search only last digits?

Cat3TRD

New Member
Joined
Apr 24, 2011
Messages
7
Hi,

I'm trying to have VLOOKUP only search the last digits of a number.

The number I'm searching for is 10 digits long, and the numbers I'm searching through are 11 or greater. The last 10 digits will always match, but the first digits are not always relevant.

Is this possible?

Example:

Sheet 1
A1 has 1234567890 (10 digits)
B1 I want to have the 5 digit number from Sheet 2

Sheet 2
A1 has 01234567890
B1 has 12345


Because of that "0" at the beginning (which can be any number at all, just using "0" as an example) VLOOKUP won't return anything.

Thanks!
 
I'm not certain that I have your setup clear, but would something like this work for you - without the helper column?

=VLOOKUP("*"&A1,Sheet2!$A$1:$B$100000,2,0)
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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