Vlookup Giving me headaches

pariash

New Member
Joined
Apr 25, 2011
Messages
7
Hello,

I am working on an inventory spreadsheet for work and I seem to be having issues with VLOOKUP. What I want to do is enter an item # like for example A123-456 and have the vlookup formular return the name of the manufacturer like Apple or whatever. I am using the formula as follows:

=vlookup(d2,table2,1,0) and all I get is #N/A.

I know the value above is a mix of text and numbers but I have seen tutorials where this works and I am stumped as to why I am getting #n/a.

Thanks in advance for any assistance.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
are you sure there are no spaces in the item number list? Thats what normally trips me up.
Check that the range called table2 has the lookup value in the leftmost column


if there are you can use =trim(vlookup(d2,table2,1,0))
 
Upvote 0
are you sure there are no spaces in the item number list? Thats what normally trips me up.
Check that the range called table2 has the lookup value in the leftmost column


if there are you can use =trim(vlookup(d2,table2,1,0))

No blanks and everything seems to be in order. In the item # field, there some item #s with spaces in the middle. Will that cause the issues?

Thanks,
 
Upvote 0
Hello,

I am working on an inventory spreadsheet for work and I seem to be having issues with VLOOKUP. What I want to do is enter an item # like for example A123-456 and have the vlookup formular return the name of the manufacturer like Apple or whatever. I am using the formula as follows:

=vlookup(d2,table2,1,0) and all I get is #N/A.

I know the value above is a mix of text and numbers but I have seen tutorials where this works and I am stumped as to why I am getting #n/a.

Thanks in advance for any assistance.

What do you get with:

=LEN(D2)

and

=LEN(table2-cell that should match)
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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