+ Reply to Thread
Results 1 to 6 of 6

Find exact or nearst lower correspoding value in a lookup table

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    22

    Find exact or nearst lower correspoding value in a lookup table

    Unfortunately I can't seem to post attachments here so here's what data I have:

    On tab [Amount]

    Please Login or Register  to view this content.
    On tab [source]
    Please Login or Register  to view this content.

    Based on what I fill in in column Amount.1, my formula does a lookup in column source.A, and finds the corresponding value in source.B and shows that in column Amount.2
    This formula works:
    Please Login or Register  to view this content.
    However, it finds the closest value in source.A, even if that value is HIGHER than the value I enter in Amount.1
    So for example, when I enter "111.20" in Amount.1, it now shows "41.67", but the value I want is the value that corresponds to either exactly 111.20 OR the nearest lower value. In this case 111.20 does not exist, so it should take the value 108 and thus return corresponding value "40.00"
    Attached Files Attached Files
    Last edited by peterkerk; 01-21-2022 at 10:27 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Find exact or nearst lower correspoding value in a lookup table

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Find exact or nearst lower correspoding value in a lookup table

    Try this
    Sheet1!A2=111.20

    =INDEX(source!$B$2:$B$1961,MATCH(Sheet1!A2,source!$A$2:$A$1961,1))
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    07-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Find exact or nearst lower correspoding value in a lookup table

    @kvsrinivasamurthy: that does not work, please check the attached Excel (thanks @alansidman) if you would

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Find exact or nearst lower correspoding value in a lookup table

    Try =VLOOKUP(Amount!B4,source!$A$2:$B$1961,2,TRUE)

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Find exact or nearst lower correspoding value in a lookup table

    Function is given in Column C. Pl see file.
    Attached Files Attached Files

+ 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] Find nearest upper and lower values in a table (index and match?)
    By wonderdunder in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2021, 08:44 AM
  2. Search Table to find exact matchs, then pull data from corresponding cell
    By Lubby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 08:36 PM
  3. [SOLVED] Find exact match then copy table
    By tomiss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2016, 06:31 AM
  4. Replies: 4
    Last Post: 01-06-2015, 09:15 PM
  5. Replies: 4
    Last Post: 03-12-2014, 12:50 PM
  6. Find exact match only using LOOKUP (not VLOOKUP)?
    By paulr24 in forum Excel General
    Replies: 3
    Last Post: 01-27-2012, 03:14 PM
  7. Find exact or closest lower date
    By ElmerS in forum Excel General
    Replies: 15
    Last Post: 12-19-2009, 10:08 AM

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