+ Reply to Thread
Results 1 to 4 of 4

Match the Upper closest value using Index Match.

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    Jeddah
    MS-Off Ver
    Office 2010
    Posts
    5

    Match the Upper closest value using Index Match.

    Hi Everyone,

    I couldn't resolve the formula of Index-Match for getting the values that matches the following criteria

    1) Match the "Category" of Table 1 to Table 2

    2) Match the "value" of Table 1 to Table 2, if value is not present in Table 2 take the upper closest value.

    Once the above conditions are met , Take the Result from Table 2

    Table 1 is for Input and Table 2 is for Database.

    Please note that Data in Table 2 should not be sorted in any way. I tried to use the -1 option of the Match function for upper closest value but it didnt work out.

    Have a look at the file attached. Any help will be greatly appreciated.
    IndexMatchUpperClosestValue_AlongwithExactMatch.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Match the Upper closest value using Index Match.

    hi adnanaddo, welcome to the forum. try this in C3 copied down:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    03-25-2012
    Location
    Jeddah
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Match the Upper closest value using Index Match.

    What a great community.

    Thank you so much benishiryo.

  4. #4
    Registered User
    Join Date
    03-25-2012
    Location
    Jeddah
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Match the Upper closest value using Index Match.

    Quote Originally Posted by benishiryo View Post
    hi adnanaddo, welcome to the forum. try this in C3 copied down:
    Please Login or Register  to view this content.
    Although problem is solved but I have to sort the Value from Largest to Smallest then sort the Category to make it work.

    I don't want the user to sort the data every time he enters the value in the database. Hope there is a solution without VBA code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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