+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP and searching for largest value

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    CPH
    MS-Off Ver
    2010
    Posts
    2

    Question VLOOKUP and searching for largest value

    Hi,

    I have the following column of values

    10
    20
    30
    40
    50

    Now, I need to look for the value 35 (lookup value) in that column of values, and excel needs to return me the next largest value, i.e. 40. With VLOOKUP I can only make it work for the next smallest value, i.e. 30. I tried using INDEX and MATCH combined but it seems that they only work with two full arrays. I basically only have 1 array and one single lookup value. I dont have space to build additional columns with inverted values etc. How can I elegantly perform the function of finding the largest value in a single column based on a single lookup value?

    Lucas

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VLOOKUP and searching for largest value

    Hi, and welcome to the forum

    One way would be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This assumes of course that the values are sorted in ascending order.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VLOOKUP and searching for largest value

    Please Login or Register  to view this content.
    Your data goes all to column XFD!!!
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP and searching for largest value

    For Excel 2010 and higher
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for other versions array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP and searching for largest value

    Quote Originally Posted by bikemaniac View Post
    return me the next largest value
    Will there always be a next largest value?

    If not, then what result do you expect?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    08-25-2016
    Location
    CPH
    MS-Off Ver
    2010
    Posts
    2

    Re: VLOOKUP and searching for largest value

    Quote Originally Posted by Richard Buttrey View Post
    Hi, and welcome to the forum

    One way would be

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This assumes of course that the values are sorted in ascending order.
    That one did it for me!! :-) Thanks a lot.

    Lucas

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup to return the largest value?
    By locopete999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2016, 09:57 AM
  2. Replies: 4
    Last Post: 04-04-2015, 04:24 AM
  3. Searching for next largest date value based on current date.
    By RockstarAgent in forum Excel General
    Replies: 2
    Last Post: 05-30-2014, 04:17 PM
  4. Replies: 12
    Last Post: 08-02-2013, 01:43 PM
  5. Replies: 9
    Last Post: 04-28-2012, 06:12 AM
  6. vlookup and going to the next largest value
    By MrSlickster01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-18-2008, 08:09 AM
  7. Vlookup next largest value
    By wmorrison49 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2008, 01:34 PM

Tags for this Thread

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