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: www.excelforum.com/member.php...nfoamp;userid=464
View this thread: www.excelforum.com/showthread...hreadid=497848It 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......
quot;Frankquot; wrote:
gt;
gt; Why is it that often this formula doesn't work?
gt; Do I need to clean up cells, or do they need to be in the same format?
gt;
gt;
gt;
gt; --
gt; Frank
gt;
gt;
gt; ------------------------------------------------------------------------
gt; Frank's Profile: www.excelforum.com/member.php...nfoamp;userid=464
gt; View this thread: www.excelforum.com/showthread...hreadid=497848
gt;
gt;
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 quot;3quot; in A1:A10 is actually quot;
3quot; or quot;3 quot; 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 Johnsonquot;Frankquot; gt; wrote in
message ...
gt;
gt; Why is it that often this formula doesn't work?
gt; Do I need to clean up cells, or do they need to be in the same format?
gt;
gt;
gt; Frank
What do you mean by quot;doesn't workquot;? 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 quot;123quot;.
Also, in text strings, spaces are important but may not show up easily. For
example, quot;Cats and dogsquot; is different from quot;Cats and dogsquot; (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
quot;workquot;. 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.
- Jun 04 Wed 2008 20:44
Vlookup
close
全站熱搜
留言列表
發表留言