VLOOKUP Error

sfink22

New Member
Joined
Jan 5, 2015
Messages
25
Hello, having one heck of a time with a seemingly routine VLOOKUP. For some reason, I cannot get this to work - I've tried formatting as general, number, text, with no luck. Naming a range, using a locked range instead, nothing. I keep getting a #N/A "value not available" error.

Here's the setup:

ABCDE
1Serial NumberModel YearSerial StartYear
2
9110253

<tbody>
</tbody>
*where vlookup goes, should return 20119092009
3
9094299

<tbody>
</tbody>
*where vlookup goes, should return 20099112011

<tbody>
</tbody>

First column is serial number, second is model year. My reference table is a list of Serial Start numbers with corresponding Years. I want my VLOOKUP to look at the serial number, match the first three digits to the Serial Start column, and return the year.

Here is an example of what I currently have in the cell (which is returning the above error):

=VLOOKUP(A2,D$2$:E$3$,2,TRUE)

Absolutely 100% sure all values are in the table, so this error is baffling me. Any help would be appreciated!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Maybe this

Code:
=VLOOKUP(LEFT(A2,3)+0,$D$2:$E$4,2,0)
 
Upvote 0
Well, the VLOOKUP didn't specify you wanted the left 3 characters in A2....:LOL:
AND

the dollar signs in the table range were in the wrong place..in future if you want to make a range absolute, either select the range OR type the range in the formula THEN press F4 to make the range absolute
 
Last edited:
Upvote 0
Ahh well - I didn't copy paste my code so I accidentally put them in the wrong spot ;) the kicker was specifying the left three characters. Couldn't find that anywhere in a google search!
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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