Combine vlookup with left function

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hi guys,
I have used a help line with this formula =LEFT(D2,2). I had to use paste special in the help column to get the reult. I am trying to combine the two formulas in one but I am getting an error. Need your expertise to combine these 2 formulas to one without the help line.
Get left data.xlsx
CDEFGHIJKLMNOPQR
1ID NoxxFormula to get result
20606XTXXK9823D1ZKF01A
30606XTXXK9823D1ZKF02B
40909BTFXK0365M1ZBI03C
50707BDCXS2940D1ZXG04D
60909XXJFD5413B1ZRI05E
70303XXHFH0769G1ZHC06F
803033XCWXJ7850R1ZKC07G
90306XTXXK9823D1ZKC08H
100306XTXXK9823D1ZKC09I
110309BTFXK0365M1ZBC
120307BDCXS2940D1ZXC
130309XXJFD5413B1ZRC
140303XXHFH0769G1ZHC
1503033XCWXJ7850R1ZKC
Sheet1
Cell Formulas
RangeFormula
F2:F15F2=VLOOKUP(C2,$Q$2:$R$10,2,0)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Oh, I see. It is a difference between having Values in one side and Text on the other.

Try this:
=VLOOKUP(VALUE(MID(D2,2,1)),P2:Q10,2,FALSE)
 
Upvote 0
Try
Excel Formula:
=VLOOKUP(Left(D2,2)+0,$Q$2:$R$10,2,0)
 
Upvote 0
Solution
Oh, I see. It is a difference between having Values in one side and Text on the other.

Try this:
=VLOOKUP(VALUE(MID(D2,2,1)),P2:Q10,2,FALSE)
JohnnyS. This formula is right with a few correction. It is columns Q and R and you need to freeze it like this $Q$2:$R$10. Then you will get the right answer. Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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