Ask Experts Questions for FREE Help !
Ask
    Amyunimus's Avatar
    Amyunimus Posts: 11, Reputation: 1
    New Member
     
    #1

    Feb 21, 2007, 11:37 AM
    Limitations of VLOOKUP
    I have a column of values that can't be put in ascending order.

    20
    55
    3
    61
    2
    etc.

    I want to lookup another value that corresponds to each of these numbers.

    1 345
    2 568
    3 111
    4 908
    5 786
    etc...

    However, since the lookup values are not ordered, the VLOOKUP function does not return a value if the lookup value is less than its position in the list.

    For example, in the first list "2" would not return a value because it appears 5th on the list, and the function is referencing the array from row 5 and above.

    Is there any way to just get a value that corresponds to the lookup number, ordered or not?

    Thanks!
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Feb 21, 2007, 11:54 AM
    The order of the value being looked up doesn't matter. The syntax of the VLookup is:

    VLookup(value, range, offset)

    The range is the table you are looking up with the first column being the value to lookup and the second or subsequent columns being the value to return.

    So, if the lookup value is 2, then the function will return 568.
    Capuchin's Avatar
    Capuchin Posts: 5,255, Reputation: 656
    Uber Member
     
    #3

    Feb 21, 2007, 12:01 PM
    I agree with scott here, I don't remember it needing to be in order for VLOOKUP to work.
    Amyunimus's Avatar
    Amyunimus Posts: 11, Reputation: 1
    New Member
     
    #4

    Feb 21, 2007, 02:41 PM
    Thanks, I just adjusted the range for all cells and it worked.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Statute of Limitations [ 1 Answers ]

What are the statute of limitations for Manitoba, Canada?

Statue of limitations [ 2 Answers ]

Have an old debt owing to a city for a speeding ticket, 17 years ago. Does statue of limitations take affect?

Limitations [ 1 Answers ]

What is the statue of limitations for auto accident injury/death in Ontario?

Statute of limitations [ 6 Answers ]

What is the statute of limitations after taking chapter seven bankruptcy in the state of Illinois, for a second mortgage to be null if I have reafirmed on the 1st. Mortgage? I went bankrupt in 2001 I reafirmed on the initial mortgage and not on the 2nd. Can I ever sell the property without paying...


View more questions Search