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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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.
 

KenWright

Active Member
Joined
Jan 14, 2005
Messages
267
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.
 

shayb

Board Regular
Joined
Apr 21, 2004
Messages
81

ADVERTISEMENT

i always make a new column and then trim the numbers.

=trim(A1)

then copy/paste special values and delete the 1st column.
 

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,593
Messages
5,637,294
Members
416,963
Latest member
zazama

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
Top