+ Reply to Thread
Results 1 to 9 of 9

Index and Match where one of the lookups needs to be nearest to

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    sdsd
    MS-Off Ver
    0007
    Posts
    5

    Index and Match where one of the lookups needs to be nearest to

    I have a index and match function trying to lookup a MF in a table using multiple match criteria. The problem is that one of the criteria to look up- the rate - is not going to match the table so i need to have it find the nearest one. Can someone look at the attached sheet and see if they can figure this one out???

    =INDEX(G12:M25,MATCH(1,(L12:L25=C11)*(M12:M25=C7)*(H12:H25=C9),0),3)

    Using this formula in C18 as the lookup. C9 needs to find the nearest in Column H

    help!
    Attached Files Attached Files

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Index and Match where one of the lookups needs to be nearest to

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by boopathiraja; 08-21-2014 at 03:17 PM.
    Click just below left if it helps, Boo?ath?

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Index and Match where one of the lookups needs to be nearest to

    If you sort your table (ascending) by "rate", then you could try this array formula:

    Please Login or Register  to view this content.
    Confirm as an array formula with Ctrl+Alt+Enter.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Registered User
    Join Date
    08-21-2014
    Location
    sdsd
    MS-Off Ver
    0007
    Posts
    5

    Re: Index and Match where one of the lookups needs to be nearest to

    Doesnt work unless Rate is exactly as in the table, similar to mine


    Report::: Wait, Conne has it!! THanks!

  5. #5
    Registered User
    Join Date
    08-21-2014
    Location
    sdsd
    MS-Off Ver
    0007
    Posts
    5

    Re: Index and Match where one of the lookups needs to be nearest to

    How can I expand this to also lookup the GTY to the nearest?

  6. #6
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Index and Match where one of the lookups needs to be nearest to

    Do you mean the rate to the nearest and the GTY to the nearest? Or just the GTY to the nearest?

    If just the GTY, then build another lookup table and sort it by GTY.
    Last edited by ConneXionLost; 08-21-2014 at 03:43 PM.

  7. #7
    Registered User
    Join Date
    08-21-2014
    Location
    sdsd
    MS-Off Ver
    0007
    Posts
    5

    Re: Index and Match where one of the lookups needs to be nearest to

    Quote Originally Posted by ConneXionLost View Post
    Do you mean the rate to the nearest and the GTY to the nearest? Or just the GTY to the nearest?

    If just the GTY, then build another lookup table and sort it by GTY.


    Rate and GTY. Eventually there will be many many lookups within 10's of thousands of rows of data. I am trying to wrap my head around this type of match

  8. #8
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Index and Match where one of the lookups needs to be nearest to

    Hi,

    Please try the following formula in C15:

    =SUMPRODUCT(--(L9:L22=C8),--(M9:M22=C4),--(H9:H22=INDEX(H9:H22,MATCH(C6,H10:H22,1)+1,1)),I9:I22)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-21-2014
    Location
    sdsd
    MS-Off Ver
    0007
    Posts
    5

    Re: Index and Match where one of the lookups needs to be nearest to

    Also... is there a way to make it look for the closest value and not just -1,1 (next greater, next less)

+ 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] Multiple criteria lookups (INDEX + MATCH?)
    By exceldummy1990 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 08-12-2014, 07:20 AM
  2. Index Match formula for multiple lookups
    By RequestGuruHelp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-04-2013, 10:51 PM
  3. [SOLVED] Help with INDEX MATCH embeded functions with 2 way lookups
    By trai4244 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-13-2012, 05:21 PM
  4. INDEX and MATCH with range LOOKUPs?
    By neilbomb in forum Excel General
    Replies: 9
    Last Post: 06-22-2010, 07:33 PM
  5. Lookups Match Index??
    By myheadhurts in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2008, 03:27 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