Using VLOOKUP with RIGHT function..

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Good evening,

I have text in cell I6 of the current Worksheet with a number at the end of it.

Code:
Some sort of text here [B]2,126[/B]

I want to use the number 2,126 in the text above to VLOOKUP the number 2,126 in another Worksheet.
Here is the formula I am using but can't seem to get it to work.

Code:
=CONCATENATE(TEXT (VLOOKUP(RIGHT(I6,5),Master!B16:D2515,3)," dd-mmm-yyyy"))

Any help will be appreciated.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I don't know why you are using CONCATENATE - probably you have showed only part of your formula.
Try to convert the lookup_value to a number
RIGHT(I6,5)+0

M.
 
Upvote 0
Brilliant, thanks M.

I did try using...

Code:
=CONCATENATE(TEXT(VLOOKUP(--RIGHT(I6,5),Master!B16:D2515,3)," dd-mmm-yyyy"))

...among other things but couldn't get it to work.

Thanks again, it is appreciated.
 
Upvote 0
Can you describe what "couldn't get it to work" means ?

Are you getting an error? What error?
Do you get the wrong result ? What result DO you get? How is that different from what you expected ?
 
Upvote 0
Hello S.H.A.D.O,
I believe the problem you are having is the lookup value is read by excel as a text value. Try using the VALUE formula to fix this problem:
Code:
=CONCATENATE(TEXT (VLOOKUP(VALUE(RIGHT(I6,5)),Master!B16:D2515,3)," dd-mmm-yyyy"))

Good luck,

CN.
 
Upvote 0
Thanks to everyone for the answers, it is appreciated.
I also tried the --RIGHT again this evening and it worked, very strange.
All working nicely now, thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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