Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: super easy question for u guys, pls help me!!

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    73
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    what is the difference between:

    vlookup(A2, Range, 2, True)
    &
    vlookup(A2, Range, 2, False)

    What difference does it make between true and false in a vlookup statement?
    cause they seem to give u the same results

    pls lmk

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Posts
    363
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    the false assures you the desired result regardless if the data table is sorted or not. This is the option I ALWAYS use.


    It's never too late to learn something new.

    Ricky

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    The difference is as follows:

    To find the closest match in the first column of the table (sorted in ascending order) use TRUE

    To find an EXACT match, use FALSE.

    Therefore, depending on your data, there may be no discernible difference.

    Best to always use FALSE though in my view.

    Rgsd
    AJ

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Posts
    73
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    i used false, when there is no exact match, it goes to zero, how can i make it blank easily?

    pls lmk

  5. #5
    New Member
    Join Date
    Mar 2002
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    False returns an exact match on an unordered list. Returns NA if not found.
    True returns the a value even if an exact match is not found . Returns previous lower number if not found. Requires an ordered list.

    example:
    2
    3
    5
    6
    a vlookup for 4 with TRUE would return 3
    a vlookup for 4 with FALSE would return n/a because 4 is not there

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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