VLOOKUP Question

O

OverMyHead

I feel stupid but I cant figure out what is wrong with my forumla. It will
only return #N/A.

Here is the formula:

=(VLOOKUP(J2,List!$A$1:$G$404,6,FALSE))

Where "List" is another tab on the same workbook and 6 is the column that I
want ito lookup.
 
M

Martin Fishlock

Hello,

Sometimes the vlookup fails because what you are looking for is not the same
as what you have given.

It is one of the classic issues in computing when 1 does not equal 1.

You are probably trying to compare a number with a text representation of 1.

One of the cells is probably formatted as text or it has quotes or a single
quote on it.

You can solve this by converting the search to text as in =TEXT(1,"0").
 
M

Max

Nothing wrong with your vlookup formula, other than the extraneous outer
parens. The problem lies in the data that you're trying to match. It looks
like it should match but it doesn't. Could be either text numbers vs real
numbers issue and/or the presence of extra white spaces for text matches
which is throwing things off.

With your data as-is (ie w/o you having to clean/modify the source
data/lookup values), you could try this index/match for more robust results,
normal ENTER to confirm will do
=IF(LEN(J2)=0,"",INDEX(List!F$2:F$404,MATCH(TRIM(J2&""),INDEX(TRIM(List!A$2:A$404&""),),0)))
Copy down. Success? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

vlookup exact match 2
VLOOKUP output 3
vlookup with if statement? 0
VLookup 1
vlookup and multiple rowns that meet criteria 3
VLOOKUP returning #N/A ?? 3
Macro 3
VLOOKUP just returns formula 2

Top