+ Reply to Thread
Results 1 to 5 of 5

INDEX MATCH ARRAY with multiple criteria

  1. #1
    Registered User
    Join Date
    01-14-2019
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    2

    INDEX MATCH ARRAY with multiple criteria

    Hi! I'm (brand) new to the forum and have been struggling through some Excel issues on my own that I could really use some advice with. I am trying to make a calendar that lists all of the tasks and deadlines due during a given week. I'm trying to use an INDEX MATCH array with 3 criteria: the group responsible for the task, and the due date (because it's done by week, the date must be within a given range).

    I have a data table in the Data tab, cells A2 to U91, with the group names in Column D, the due date in column C, and the title of the task in column F. What I am creating is a calendar, seperated by group, that look sup all the tasks assigned to that group, due in a given week, and listing the titles of the tasks in descending rows in a column (in this case, Column G of my current worksheet, though weeks are listed horizontally so I need to be able to drag the formula right).


    I've consulted a number of different posts here and elsewhere and have managed to get this formula to return the FIRST matching result : {=IFERROR(INDEX(Data!$A$2:$U$91,MATCH(1,(Data!$C:$C>=G$38)*(Data!$C:$C<=G$39)*(Data!$D:$D="Group A"),0),6),"")}

    When I go to try and make this an array formula, I tried this : {=INDEX(Data!$A$2:$U$91, SMALL(IF(COUNTIFS(Data!$D:$D,"Group A",Data!$C:$C,">="&G$38,Data!$C:$C,"<="&G$39), MATCH(ROW(Data!$D:$D), ROW(Data!$D:$D)), ""), ROWS($G$21:G21)),6)} but it returns a list of EVERY task, regardless of if it matches my COUNTIF criteria.

    EDIT: I have also tried the following formula, with the same result as above (lists all task names, not filtered)
    {=INDEX(Data!$A$2:$U$91,SMALL(IF(ISNUMBER(MATCH(1,(Data!$C:$C>=G$38)*(Data!$C:$C<=G$39)*(Data!$D:$D="Group A"),0)),MATCH(ROW(Data!F:$F),ROW(Data!F:$F)),""),ROWS($G$21:G21)),6)}

    Does anyone know how I can fix/change either of these formulas so that it will list all of the proper results? Thank you!
    Last edited by StoneQuill; 01-15-2019 at 04:17 PM.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: INDEX MATCH ARRAY with multiple criteria

    Well my first whack would be to slap a helper column on the end to do a simple Boolean go/nogo, and then throw the data into a Pivot Table, and then Filter the PT by the helper column.

    But formulatically building a table of data would be a lot rougher, I wouldn't do it unless it was really necessary, because you might end up using some dark magic.

    Can you post an example spreadsheet?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: INDEX MATCH ARRAY with multiple criteria

    I agree with Ben - It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-14-2019
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: INDEX MATCH ARRAY with multiple criteria

    Hi everyone!

    I managed to remedy my issue! For reference, here's the final formula, designed to allow an Index/Match array to use SMALL to lookup a value in a specific column and list multiple responses.

    {=IFERROR(INDEX(Data!$A$2:$U$91,(SMALL(IF((Data!$D:$D="Group A")*(Data!$C:$C>=B$38)*(Data!$C:$C<=B$39),MATCH(ROW(Data!$D:$D), ROW(Data!$D:$D)), ""), ROWS(B$21:$E21))),6),"")}

    Thanks for all your help!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: INDEX MATCH ARRAY with multiple criteria

    Glad to see you got a solution, but it is not a good idea to use full-column references in an array formula, as every cell will be tested and thus may become sluggish.

    Hope this helps.

    Pete

+ 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. Replies: 6
    Last Post: 12-13-2017, 10:08 AM
  2. [SOLVED] Is an array required for index-match with multiple criteria?
    By trolle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 05:29 AM
  3. Perform Logical Equivilent of Index Match Array look up with multiple criteria in VBA
    By MichaelDoughertyJr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-28-2016, 04:03 PM
  4. Need an array possibly INDEX/MATCH formula with multiple lookup criteria.
    By TheClaw2323 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2015, 09:59 AM
  5. Index Match Array Multiple Criteria
    By Keelin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2014, 02:48 AM
  6. Replies: 4
    Last Post: 03-27-2014, 01:09 PM
  7. LOOKUP with Multiple Criteria (ARRAY INDEX and MATCH)
    By snowktt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2014, 02:24 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