+ Reply to Thread
Results 1 to 4 of 4

Vlookup

  1. #1
    Registered User
    Join Date
    12-05-2006
    Posts
    2

    Question Vlookup

    "If VLOOKUP can't find lookup_value, and range_lookup is TRUE, it uses the largest value that is Less than or Equal to lookup_value."

    Question:
    How to find the minimum value that is greater or equal to lookup_value? For example, in a array 1,2,3,4,5, how can I identify the minimum value, say 3, that is greater than, say 2.5?
    Thanks.

  2. #2
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    You can use the Match function with a match type of -1 however your values need to be in descending order. Ex

    =Match(2.5,A1:A5,-1) would = 3 if A1-A5 = 5,4,3,2,1
    jtp

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    I agree that the lookup functions often fail to provide options one might think that they aught...

    You could try using MATCH() and INDEX()

    MATCH searches in much the same way as VLOOKUP(), but returns the position of the match within the range.
    You can then use that position to guide INDEX() to get the required data.

    The advantage of MATCH() is that if the number it matches is less than the one you want, you can add 1 to the position and get the next number.

    It's not as neat as VLOOKUP(), but it is more versatile.

    Mark.

  4. #4
    Registered User
    Join Date
    12-05-2006
    Posts
    2

    Smile Vlookup

    Appreciate your help!

+ 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