#1   Report Post  
Posted to microsoft.public.excel.misc
Frank
 
Posts: n/a
Default Vlookup


Why is it that often this formula doesn't work?
Do I need to clean up cells, or do they need to be in the same format?



--
Frank


------------------------------------------------------------------------
Frank's Profile: http://www.excelforum.com/member.php...nfo&userid=464
View this thread: http://www.excelforum.com/showthread...hreadid=497848

  #2   Report Post  
Posted to microsoft.public.excel.misc
bernard
 
Posts: n/a
Default Vlookup

It would help if you could advise the syntax of the formula you are trying to
use and what you mean by 'it doesn't work', i.e. is it returning #N/A or is
it returning the wrong result?

In the meantime, have you checked that the cell you are looking up and the
range you are searching are both text format, or are both numeric - if this
isn't the case you will likely get #N/A a result.

Also, the first column of the range you are searching must contain the data
you are searching for......

"Frank" wrote:


Why is it that often this formula doesn't work?
Do I need to clean up cells, or do they need to be in the same format?



--
Frank


------------------------------------------------------------------------
Frank's Profile: http://www.excelforum.com/member.php...nfo&userid=464
View this thread: http://www.excelforum.com/showthread...hreadid=497848


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default Vlookup

Hi Frank,
One possible reason could be invisible character(s) in the first column
of the lookup table
eg say =VLOOKUP(3,A1:H10,2,FALSE) and the "3" in A1:A10 is actually "
3" or "3 " then VLOOKUP returns #N/A because a clean 3 could not be
found and if you left out the last argument (FALSE) or used TRUE then
VLOOKUP will return an incorrect value because it would have used the
value in A1:H10 that is closest to being equal to 3.
Ken Johnson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Stephen
 
Posts: n/a
Default Vlookup

"Frank" wrote in
message ...

Why is it that often this formula doesn't work?
Do I need to clean up cells, or do they need to be in the same format?


Frank


What do you mean by "doesn't work"? What does happen? Do you get an error or
an unexpected result?
Try posting the formula you are using (or an example).

The data does need to be of the same format as the lookup value. So, for
example, the number 123 is different from the text string "123".

Also, in text strings, spaces are important but may not show up easily. For
example, "Cats and dogs" is different from "Cats and dogs" (the latter
having two spaces between the first two words).

Have you looked at the definition of VLOOKUP in Help?
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)
The last (optional) parameter, range_lookup, determines whether you require
an exact or approximate match. If you specify FALSE, only exact matches will
"work". However, if you specify approximate (the default, if parameter
range_lookup is omitted, or TRUE), the data must be sorted in ascending
order. This has potential for giving confusing results.


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
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 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 data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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