+ Reply to Thread
Results 1 to 3 of 3

Index match with multiple criteria and returning last value

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2010
    Posts
    3

    Index match with multiple criteria and returning last value

    Hi,

    I'm new to this form...any form and I'm also trying to figure out the index match formula as well.

    What I'm trying to do is use multiple criteria, from two tables, and return the last value that matches the criteria.

    Here is the formula that I have so far, it is working to the point of returning the first match,

    =INDEX(Table1!$M$5:$M$189,MATCH(1,(Table1!$K$5:$K$189=Table 2!O7)*(Table 1!$J$5:$J$189=Table 2!N7)*(J7>=Table 1!$H$5:$H$189),0))

    Any pointers out there? Is this even the best formula to go with?

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Index match with multiple criteria and returning last value

    Try:

    =LOOKUP(2,1/((Table1!$K$5:$K$189=Table 2!O7)*(Table 1!$J$5:$J$189=Table 2!N7)*(J7>=Table 1!$H$5:$H$189)),Table1!$M$5:$M$189)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Red Deer, AB
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Index match with multiple criteria and returning last value

    That worked perfectly, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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