#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
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   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP question mwam423 Excel Worksheet Functions 6 January 15th 10 11:25 PM
Vlookup question *zot* Excel Worksheet Functions 2 March 17th 09 09:08 PM
Vlookup question CIL Excel Worksheet Functions 1 January 19th 09 11:57 PM
VLookup question DKinPgh Excel Worksheet Functions 3 November 7th 08 12:33 AM
vlookup question Brian Excel Discussion (Misc queries) 1 April 18th 06 03:31 AM


All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"