A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VLOOKUP Question



 
 
Thread Tools Display Modes
  #1  
Old November 14th, 2009, 10:01 PM posted to microsoft.public.excel.misc
overmyhead
external usenet poster
 
Posts: 28
Default VLOOKUP Question

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.
  #2  
Old November 14th, 2009, 10:56 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default VLOOKUP Question

You don't need those outside ()'s, but that won't matter.

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

My guess is that you don't have an exact match in List!A1:A404 for the value in
J2.

Debra Dalgleish has lots of notes on troubleshooting =vlookup():
http://contextures.com/xlFunctions02.html#Trouble

OverMyHead wrote:

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.


--

Dave Peterson
  #3  
Old November 14th, 2009, 11:15 PM posted to microsoft.public.excel.misc
Martin Fishlock
external usenet poster
 
Posts: 428
Default VLOOKUP Question

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").

--
Hope this helps
Martin Fishlock, www.nyfconsultants.com, Wolverhampton, UK
Please do not forget to rate this reply.


"OverMyHead" wrote:

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.

  #4  
Old November 14th, 2009, 11:18 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default VLOOKUP Question

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(J 2&""),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
---
"OverMyHead" wrote:
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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.