VLOOKUP Problem

engelwood

Active Member
Joined
Oct 14, 2004
Messages
327
I've had this problem in the past but have never had time to try and figure it out. While doing a VLOOKUP I get all of my returns to come back "#N/A." However when I look on the sheet I'm referencing they are actually listed. If I click the cell and press enter the VLOOKUP will then return the reference. Does anyone know why this happens?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
engelwood said:
I've had this problem in the past but have never had time to try and figure it out. While doing a VLOOKUP I get all of my returns to come back "#N/A." However when I look on the sheet I'm referencing they are actually listed. If I click the cell and press enter the VLOOKUP will then return the reference. Does anyone know why this happens?

There is a mismatch between the data type of the lookup value and the data type of the values in the first column of your lookup table. That is, something like:

text vs numeric

or

numeric vs text

Conclusion: You need to align the data types, that is, make them of the same type.
 
Upvote 0
One easy way of doingf what Aladin has suggested is to put a 1 in a cell, copy the cell, select your range of data and do Edit / Paste Special / Multiply. This should coerce textual numbers back to real numbers.
 
Upvote 0
i always make a new column and then trim the numbers.

=trim(A1)

then copy/paste special values and delete the 1st column.
 
Upvote 0
Try =ISTEXT(cell) for both sets of values to see if they are text or numeric. Just because a format says general doesn't mean the data id actually numeric.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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