Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default Simple VLOOKUP problem

I am a first time user of the VLOOKUP function so am sure I have missed
something basic but can't see what it is. The formula is returning #N/A
despite the value being in the table array. The formula I have is:

=VLOOKUP(D3,$I$3:$J:$361,2,TRUE)

I am basically trying to lookup a name in D3 and match it with the
corresponding name in the table I3:J361 and then return the value in column 2
of the table. If I do =D3=I1340 then TRUE is returned so the formatting
appears to be the same.

Anyone have any ideas whatsoever???

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Simple VLOOKUP problem

=VLOOKUP(D3,$I$3:$J:$361,2,TRUE)

Change to:

=VLOOKUP(D3,$I$3:$J:$361,2,FALSE)

FALSE means you expect an exact match while TRUE means you expect an
approximate match.

Biff

"chris" wrote in message
...
I am a first time user of the VLOOKUP function so am sure I have missed
something basic but can't see what it is. The formula is returning #N/A
despite the value being in the table array. The formula I have is:

=VLOOKUP(D3,$I$3:$J:$361,2,TRUE)

I am basically trying to lookup a name in D3 and match it with the
corresponding name in the table I3:J361 and then return the value in
column 2
of the table. If I do =D3=I1340 then TRUE is returned so the formatting
appears to be the same.

Anyone have any ideas whatsoever???



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Simple VLOOKUP problem

=VLOOKUP(D3,$I$3:$J:$361,2,TRUE)

Try instead:
=VLOOKUP(TRIM(D3),$I$3:$J$1400,2,0)

TRIM is used on the lookup value D3 to remove any extraneous white spaces
which might be throwing the names matching off

The table array: $I$3:$J$1400
is corrected for syntax and extended to cover (perhaps typo in your original
?)

The 4th param, Range lookup, is set to zero (or FALSE) to hunt for an exact
match (since we're matching names, ie text)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"chris" wrote:
I am a first time user of the VLOOKUP function so am sure I have missed
something basic but can't see what it is. The formula is returning #N/A
despite the value being in the table array. The formula I have is:

=VLOOKUP(D3,$I$3:$J:$361,2,TRUE)

I am basically trying to lookup a name in D3 and match it with the
corresponding name in the table I3:J361 and then return the value in column 2
of the table. If I do =D3=I1340 then TRUE is returned so the formatting
appears to be the same.

Anyone have any ideas whatsoever???

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 problem yvette Excel Worksheet Functions 7 November 2nd 06 06:31 PM
Problem with VLOOKUP in 2003. Carlgru Excel Worksheet Functions 2 September 27th 06 08:04 PM
Vlookup problem.. Neo1 Excel Worksheet Functions 5 March 16th 06 09:53 AM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM
VLOOKUP problem Jason Excel Worksheet Functions 2 January 14th 05 10:39 PM


All times are GMT +1. The time now is 01:43 AM.

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

About Us

"It's about Microsoft Excel"