Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Vladimir
 
Posts: n/a
Default Vlookup Help needed ASAP

I am having trouble looking up the Text (String) in the list the contains the
same text (string)
For example, one list contains "Sam Smith", and the other list contains "Sam
Smith", but Vlookup() returns #N/A.

Please help!
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Probably an extra space somewhere, check one cell for each with =LEN(cell)
replace cell with one Sam Smith cell reference then do it with one form the
other list,
if no extra spaces it should return 9 in both cases, if you have more in one
case
wrap the range in TRIM like

=VLOOKUP(A2,TRIM(Sheet2!A2:C100),2,FALSE)

entered with ctrl + shift & enter

or

=VLOOKUP(TRIM(A2),Sheet2!A2:C100,2,FALSE)

entered normally

you might want to install this macro

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

that will remove trailing html characters as well

--
Regards,

Peo Sjoblom

(No private emails please)


"Vladimir" wrote in message
...
I am having trouble looking up the Text (String) in the list the contains
the
same text (string)
For example, one list contains "Sam Smith", and the other list contains
"Sam
Smith", but Vlookup() returns #N/A.

Please help!


  #3   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Fri, 14 Oct 2005 19:11:03 -0700, "Vladimir"
wrote:

I am having trouble looking up the Text (String) in the list the contains the
same text (string)
For example, one list contains "Sam Smith", and the other list contains "Sam
Smith", but Vlookup() returns #N/A.

Please help!


Apart from any additional spaces that others have mentioned, is the
list a multicolumnar list and is "Sam Smith" in the first column?

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Vladimir
 
Posts: n/a
Default



"Vladimir" пишет:

I am having trouble looking up the Text (String) in the list the contains the
same text (string)
For example, one list contains "Sam Smith", and the other list contains "Sam
Smith", but Vlookup() returns #N/A.

Please help!


Yes, I have used the Trim() function and yes "Sam Smith" is in first column
in the list of lookup values. Also, I have changed the formating of both
columns, i.e. format to text values.
I don't know what else could be done to find the solution.
  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Did you use the macro?

--
Regards,

Peo Sjoblom

(No private emails please)


"Vladimir" wrote in message
...


"Vladimir" пишет:

I am having trouble looking up the Text (String) in the list the contains
the
same text (string)
For example, one list contains "Sam Smith", and the other list contains
"Sam
Smith", but Vlookup() returns #N/A.

Please help!


Yes, I have used the Trim() function and yes "Sam Smith" is in first
column
in the list of lookup values. Also, I have changed the formating of both
columns, i.e. format to text values.
I don't know what else could be done to find the solution.




  #6   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Sat, 15 Oct 2005 09:48:28 -0700, "Vladimir"
wrote:



"Vladimir" ?????:

I am having trouble looking up the Text (String) in the list the contains the
same text (string)
For example, one list contains "Sam Smith", and the other list contains "Sam
Smith", but Vlookup() returns #N/A.

Please help!


Yes, I have used the Trim() function and yes "Sam Smith" is in first column
in the list of lookup values. Also, I have changed the formating of both
columns, i.e. format to text values.
I don't know what else could be done to find the solution.


Have you tried copying Sam Smith from your lookup table to the cell
which you're using for the lookup?

If that still returns #N/A at least you'll have eliminated a text
string problem.

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #7   Report Post  
pisanichris
 
Posts: n/a
Default Vlookup Help needed ASAP


When using VLOOKUP, you should have the data in the first column sorted
(Data, Sort). Try this and it should work. Make sure you select all the
table and sort by 1st column. If you don't want to sort the data for
other reasons, try using the LOOKUP function rather than the VLOOPKUP.


--
pisanichris
------------------------------------------------------------------------
pisanichris's Profile: http://www.excelforum.com/member.php...o&userid=28138
View this thread: http://www.excelforum.com/showthread...hreadid=476448

  #8   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Vlookup Help needed ASAP

Only if you use TRUE or 1, not when looking for an exact match

--
Regards,

Peo Sjoblom

(No private emails please)


"pisanichris"
wrote in message
...

When using VLOOKUP, you should have the data in the first column sorted
(Data, Sort). Try this and it should work. Make sure you select all the
table and sort by 1st column. If you don't want to sort the data for
other reasons, try using the LOOKUP function rather than the VLOOPKUP.


--
pisanichris
------------------------------------------------------------------------
pisanichris's Profile:
http://www.excelforum.com/member.php...o&userid=28138
View this thread: http://www.excelforum.com/showthread...hreadid=476448


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 help needed Steven J Excel Worksheet Functions 5 August 26th 05 10:32 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
Vlookup Help Needed Eaglered Excel Discussion (Misc queries) 1 May 19th 05 10:36 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 04:24 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"