+ Reply to Thread
Results 1 to 6 of 6

Return and aggregate values if it meets one or more criteria

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Return and aggregate values if it meets one or more criteria

    I am using INDEX and AGGGATE formula, I would like to ask, is it possible to add OR function to the criteria, so that it would INDEX all values even if it meet only one criteria.
    Thanks for the help
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Return and aggregate values if it meets one or more criteria

    Please try at E2
    =IFNA(INDEX($I$2:$I$5,MATCH(1,MMULT(--($B2:$D2=$J$2:$J$5),{1;1;1})/ISNA(MATCH($I$2:$I$5,$D2:D2,)),)),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Return and aggregate values if it meets one or more criteria

    Thanks a lot, it works very well. I just have one question: how can I add additional MATCH criteria on this formula? For example that $I$2:$I$5 <> I2

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

    Re: Return and aggregate values if it meets one or more criteria

    It may be easier to say how to add $I$2:$I$5 <> I2 if we could know what you want the results to look like after that criteria has been added.
    That said the following produces some results: =IFNA(INDEX($I$2:$I$5,MATCH(1,MMULT(--($B2:$D2=$J$2:$J$5),{1;1;1})/ISNA(MATCH($I$2:$I$5,$D2:D2,))/($I$2:$I$5<>I2),)),"")
    Let us 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.

  5. #5
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Return and aggregate values if it meets one or more criteria

    Thank you, thats what i needed.

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

    Re: Return and aggregate values if it meets one or more criteria

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 2
    Last Post: 11-30-2019, 11:19 AM
  2. Replies: 4
    Last Post: 09-02-2019, 01:06 AM
  3. [SOLVED] Match two criteria and return multiple records - INDEX & AGGREGATE, TEXTJOIN function
    By remyte in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2019, 01:53 PM
  4. Return Data from First Column That Meets Criteria
    By geschinger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2012, 09:30 AM
  5. Return a range of cells that meets a criteria
    By bgallagher1 in forum Excel General
    Replies: 3
    Last Post: 08-14-2010, 04:33 AM
  6. Return a range that meets a specific criteria
    By Brenda Blanchard in forum Excel General
    Replies: 5
    Last Post: 03-26-2009, 11:54 PM
  7. [SOLVED] Formula to return ADDRESS of cell in range that meets criteria
    By Christie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2005, 08:06 PM

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