+ Reply to Thread
Results 1 to 4 of 4

Vlookup

  1. #1
    Registered User
    Join Date
    09-03-2003
    Location
    Germany
    Posts
    2

    Question 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?

  2. #2
    bernard
    Guest

    RE: 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. #3
    Ken Johnson
    Guest

    Re: 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. #4
    Stephen
    Guest

    Re: Vlookup

    "Frank" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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,range_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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1