+ Reply to Thread
Results 1 to 5 of 5

Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    Baton Rouge, LA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

    Hello ExcelForum

    I have a table of values in ascending order that go along with a match function to return values in a specified cell. When there is a number to lookup that is inbetween values in the table, the function returns a value coresponding to the lower number rather than the higher number.

    Is there a way to manipulate the function to give me the higher number's coresponding value?

    My sheet is attached here Density Pay.xlsx .

    Thank you in advance!

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

    You can use the Match type as -1 instead of 1 which you have used, But for that, the data needs for be sorted descending..
    Cheers!
    Deep Dave

  3. #3
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

    =index($m$2:$m$52,match(g5,index($n$2:$s$52,0,vlookup(g4,$n$1:$s$1,1)),1)+1)
    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    04-22-2013
    Location
    Baton Rouge, LA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

    Quote Originally Posted by msexcelathome View Post
    You can use the Match type as -1 instead of 1 which you have used, But for that, the data needs for be sorted descending..
    Thanks msexcelathome,

    At first I was frustrated because I had already tried that. Then I realized, I needed to truncate my values in J5 etc to get the correct value from the table!
    Much Love to ExcelForum! You guys are always very helpful!

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Lookup/Index/Match to Return Value of Higher number rather than lower# when inbetween

    Glad it helps!

    Deep

+ 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] Lookup match index multiple values return other columns
    By martypocock in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-07-2012, 10:57 PM
  2. [SOLVED] Lookup value from row and return higher if not available
    By JimmyA in forum Excel General
    Replies: 3
    Last Post: 05-10-2012, 05:48 AM
  3. Replies: 2
    Last Post: 05-31-2010, 03:23 PM
  4. [SOLVED] need to select closest match using vlookup if it higher or lower
    By vlookup help pls in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 03:35 PM
  5. Replies: 3
    Last Post: 02-08-2005, 11:06 PM

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