+ Reply to Thread
Results 1 to 5 of 5

Array formula to return list of values that match multiple criteria

  1. #1
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Array formula to return list of values that match multiple criteria

    Hi all,

    I've been wrestling with a difficult array formula problem. I have a large array of TRUE/FALSE values that designate if a particular area will be serviced on a particular ISO Week Number. I need an array formula that will return a list of areas to be serviced (indicated by a cell value of "TRUE") when the user enters a given ISO Week Number.

    Untitled picture.png

    I have attached a copy of the spreadsheet. I have tried several versions of an INDEX(MATCH) and have come close but I only get a list of a single area that matches the criteria, not the whole list.
    Looking forward to your feedback.

    -T
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Array formula to return list of values that match multiple criteria

    Paste this array formula* into Sheet2!F5:
    Please Login or Register  to view this content.
    *After pasting the formula into the cell:
    1) Press the F2 key,
    2) Press the Ctrl, Shift and Enter keys simultaneously,
    3) Double click on the fill handle to send the formula down column F (or drag as far as desired).
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Re: Array formula to return list of values that match multiple criteria

    This is exactly what I was looking for. Thank you. If you might explain the syntax to me that would be wonderful. It had not occurred to me that i would need multiplication and division functions to define the row and column.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Array formula to return list of values that match multiple criteria

    As you stated the math in the array argument of the SMALL function finds the column number for the Index function. The best way to see how this works is to run "Evaluate Formula" from the formula tab. You'll see that all of the column numbers are restricted to (divided by) those that are on the row with week #13 AND (multiplied by) have a value of TRUE. Those values not in the week 13 row or having a value of FALSE will produce a zero in the denominator causing a #DIV/0 which is caught by the interior IFERROR.
    The small function then picks the actual column number based on the value of the ROW function in that particular cell. If there is not a column heading returned by the INDEX in that cell the leading IFERROR traps the ensuing #Value. Hope that explanation is understandable, let me know if not.
    Also want to say; Your Welcome and thank you for the feedback. If you haven't already please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a good day.

  5. #5
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Re: Array formula to return list of values that match multiple criteria

    No, that makes sense. Thank you again!

+ 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] Array Match and Return value upon multiple array match criteria
    By VegetaOSX in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2015, 05:50 AM
  2. Replies: 0
    Last Post: 07-08-2014, 09:51 AM
  3. Replies: 4
    Last Post: 03-27-2014, 01:09 PM
  4. Array formula to return multiple values based on various (OR) criteria
    By dancing-shadow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2013, 05:12 AM

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