+ 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
    20

    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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    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!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    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
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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
    20

    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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    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
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    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
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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