+ Reply to Thread
Results 1 to 10 of 10

Index Match - Multiple Criteria - Multiple Results

  1. #1
    Registered User
    Join Date
    07-23-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2016
    Posts
    18

    Index Match - Multiple Criteria - Multiple Results

    I know this is going to be extremely easy for all of you. For some reason I can put together these intricate workbooks (I just extracted what you needed to know for this problem), but I can't for the life of me learn this Row($A$1:A1) thing (which I assume is what you'll tell me to use). I just can't figure it out!!!!

    I truly appreciate your assistance and knowledge ahead of time.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    46,875

    Re: Index Match - Multiple Criteria - Multiple Results

    What are you trying to do?

    Or, put another way: what are you wanting this to return?

    =INDEX(Table1,MATCH(1,($K$1=Table1[STORE])+("all"=Table1[STORE])*($K$3 < Table1[EXPIRATION]),0),2)

    The usual thing to do is provide a workbook with at least 10 rows of sample data and manually entered results to demonstrate what you are hoping for.
    Last edited by AliGW; 08-03-2019 at 06:57 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,873

    Re: Index Match - Multiple Criteria - Multiple Results

    Wild guess:

    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$2:$A$10)/((($A$2:$A$10="All")+($A$2:$A$10=$K$1))*($C$2:$C$10>=$K$3)),ROWS(E$8:E8))),"")

    in E8, copied down.
    Glenn



  4. #4
    Registered User
    Join Date
    07-23-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: Index Match - Multiple Criteria - Multiple Results

    Thanks sooo much, Glenn!!! You're a true rock star!
    Last edited by AliGW; 08-03-2019 at 07:16 AM. Reason: Please don't quote unnecessarily!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,873

    Re: Index Match - Multiple Criteria - Multiple Results

    Do you understand it... even with the row thing (it's just a counter, BtW)?

    If so, you're welcome. If not... ask.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  6. #6
    Registered User
    Join Date
    07-23-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: Index Match - Multiple Criteria - Multiple Results

    I really don't, and I don't know why. I understand almost every other area of excel after putting some time in to learn it. This just baffles me for some reason. I've got some vba I need to ask next, but I'm now learning that part.
    Last edited by AliGW; 08-03-2019 at 07:30 AM. Reason: Please don't quote unnecessarily!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    46,875

    Re: Index Match - Multiple Criteria - Multiple Results

    If you type this into a cell:

    =ROWS(E$8:E8)

    and drag copy down, you will see a list of results incrementing from 1 upwards.

    In this case, as you drag down, the formula uses this as the AGGREGATE SMALL function counter.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,873

    Re: Index Match - Multiple Criteria - Multiple Results

    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$2:$A$10)/((($A$2:$A$10="All")+($A$2:$A$10=$K$1))*($C$2:$C$10>=$K$3)),ROWS(E$8:E8))),"")


    Red: if A2:A10 is equal to All or (the plus sign) K1
    Orange: and C2:C10 is less than K3,
    Cyan: return the row number
    Green: in ascending order
    Blue: starting with 1, then 2, etc,
    Purple: returning as the final result the corresponding value in column B
    Black: if error returned, return a blank.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    46,875

    Re: Index Match - Multiple Criteria - Multiple Results

    Orange: and C2:C10 is less than K3,

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,873

    Re: Index Match - Multiple Criteria - Multiple Results

    Duhh. >=K3

+ 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] Index match with multiple criteria (one with a wildcard) and multiple results.
    By rachelsteele in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2019, 06:51 PM
  2. Replies: 1
    Last Post: 01-18-2019, 03:55 PM
  3. Index Match w/single criteria, multiple results
    By Mflick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2018, 06:34 PM
  4. [SOLVED] Find multiple results with INDEX & MATCH on 2 criteria
    By SubwAy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-22-2017, 08:56 AM
  5. [SOLVED] Index match on multiple criteria/ results
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2015, 10:40 AM
  6. [SOLVED] How to index and match multiple criteria without repeating results?
    By PistachioPedro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-20-2013, 05:38 PM
  7. Replies: 0
    Last Post: 03-02-2012, 11:16 AM

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