VLOOKUP Not Working; Please Help

jaa522

New Member
Joined
Mar 27, 2017
Messages
7
Hello,

I am using VLOOKup to search for a table that has UPC codes and titles for the corresponding upc code. I have 25000 rows for the table, but I took it down to just 3 and searched only for one value that I know is within the 3, however I keep g
g91U4F
etting the n/a as a return value. See the two screen shots. Note: I have gotten this to work before so I do not know what I am doing wrong; I will eventually have thousands of rows to run this on in a table to search with about 50000 values in the columns. Please tell me if you see something wrong or know of a way (even a better different way) to go about it. Thanks.

image links: https://ibb.co/h2GwjF
https://ibb.co/g91U4F
h2GwjF
g91U4F
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
.
Try :
Code:
=VLOOKUP(L44,$M$17508:$N$17510,1,False)

Changed the 2 to a 1
 
Upvote 0
It seems the values in column L are text whilst the values in column M are numbers.
To check, see if this works
=VLOOKUP(L44+0,M:N,2,0)
If it works i think you should convert column L to Number using
Data > Text to Columns

M.
 
Last edited:
Upvote 0
If column M is numeric and M:N is sorted on M in ascending order... you can have a much faster look up:

=IF(VLOOKUP(lookupvalue,M:M,1,1)=lookupvalue,VLOOKUP(lookupvalue,M:N,2,1),"NA")

The value you look up (lookupvalue) must be numeric too (see Marcelo's post).
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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