Combine Vlookup and Right Function

joe675

Board Regular
Joined
Dec 16, 2007
Messages
54
Hello I am trying to combine the Vlookup and the Right function in one cell. Basically I am using the Vlookup to get a number from another sheet but I only need the last five digits of a ten digit number.

I can do the Vlookup ex. in cell B5 I enter =VLOOKUP(E5,E5:F17,2,2) then use the right function =RIGHT(B5,5) to get what I need, but am just trying to save a step.


Thank you
 

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.
=right(VLOOKUP(E5,E5:F17,2,2),5)

should work. Are you getting any errors.
if required you can make the format it as text.
 
Upvote 0

Forum statistics

Threads
1,222,710
Messages
6,167,780
Members
452,141
Latest member
beraned1218

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