+ Reply to Thread
Results 1 to 5 of 5

Formula to Return All Criteria Matches

  1. #1
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Formula to Return All Criteria Matches

    Hello,

    This is a different approach to find 1 to multiple matches returning all results from the AFRsDB sheet.

    On my 'Multiple Search' sheet I have X's in column C which selects the criteria. I would like to return all of the results in Columns E:P which fit the criteria.

    Can this be achieved with formulas please?

    Thank you very much in advance for your help,
    FF

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Formula to Return All Criteria Matches

    Given size of results matrix and, arguably, expensive calc I would advocate either use of Table / DNR (source data), and 2 keys (stored in grouped row, column) which hold index positions of row & column.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Formula to Return All Criteria Matches

    Thank you Xlent it works great. Can you please explain the named range that you created?

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Formula to Return All Criteria Matches

    first off - the prior example uses a wildcard based search which may / may not be what you want ?

    the attached uses exact match which I suspect is what you want (given use of validated lists) however, you can mix/match logic by field, i.e.:

    wildcard match (search term of "car" would also return "scar", "carpet" etc)

    ISNUMBER(SEARCH(IF($C$3="X",$D$3,"*"),INDEX(_AFR_Data,0,13)))

    whereas below logic would only return "car"

    ISNUMBER(SEARCH("^"&IF($C$3="X",$D$3,"*")&"^","^"&INDEX(_AFR_Data,0,13)&"^"))


    in terms of the DNR -- I defined Name thus:

    Name: =_AFR_Data
    RefersTo: =AFRsDB!$A$1:INDEX(AFRsDB!$AN:$AN,MATCH(REPT("Z",255),AFRsDB!$AN:$AN))

    the above would create a range from A1 to ANx where x is determined by last status entry in Col AN; the calcs on search tab reference the above range.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-12-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    421

    Re: Formula to Return All Criteria Matches

    This is very complicated and I really appreciate the way it works.

    Fantastic use of formulas. Thank you kindly!


+ 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] Formula to return Yes if Criteria matches and column has a 1
    By Hannah122392 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-23-2019, 06:52 PM
  2. [SOLVED] Return Lookup value online if column matches criteria?
    By rgunter in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-19-2017, 02:06 PM
  3. Replies: 2
    Last Post: 12-14-2014, 05:18 PM
  4. [SOLVED] Need a Formula to return a list of data that matches 3 criteria in seperate columns
    By JDUBS1080 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-23-2013, 01:06 PM
  5. Return last entry in column that matches criteria
    By tomlancaster in forum Excel General
    Replies: 4
    Last Post: 01-22-2010, 10:27 AM
  6. two criteria - multipule matches that are the same - 1 answer to be return
    By deaexcelpadawan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2008, 10:02 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