vlookup not functioning properly

TXkleen

New Member
Joined
Oct 19, 2017
Messages
9
Howdy folks,

I have a spreadsheet in which I have a column of cells that all contain 7 characters. I am extracting characters 4, 5, and 6 of these cells via this formula:

Cell H3: =VALUE(MID(G3,4,3))

I am then using the following vlookup trying to pair the data in H3 with a lookup table on my 2nd tab:
=VLOOKUP(I3,lookups1!$A$3:$B$9,2)

The lookup table is as follows:


A B
3 016 0w16
4 020 0w20
5 520 5w20
6 530 5w30
7 540 5w40
8 103 10w30
9 154 15w40

The lookup seems to work until it tries to query "103." When this happens, it yields "0w20" but it should yield "10w30"

I have tried converting the 3 character extraction to value, text, etc., as well as converting the lookup cells to values, text, etc., and nothing seems to fix the glitch.

Any ideas?

Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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