+ Reply to Thread
Results 1 to 9 of 9

Return Unique list based on Multiple Criteria

  1. #1
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Return Unique list based on Multiple Criteria

    Hello Guys,

    Just worked on the formula for returning the dynamic unique value from the large list, but I managed to workaround with single criterion based formula:

    for example:

    =INDEX('Act. Report'!$O$2:$O$1172, MATCH(0, IF($B$1='Act. Report'!$G$2:$G$1172, COUNTIF($A$3:$A3, 'Act. Report'!$O$2:$O$1172), ""), 0))

    Can you please support to include there second criterion in order to extract list based on two criteria?


    Thanks in advance.
    Attached Files Attached Files
    Last edited by G.Bregvadze; 07-18-2017 at 03:40 AM. Reason: added attachement

  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
    80,647

    Re: Reutrn UNiques list based on Multiple Criteria

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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 Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Reutrn UNiques list based on Multiple Criteria

    Hello,

    Thanks for the response.

    I have added the sample workbook with current existing formula.

    As Mentioned I need to add second criterion in the formula:

    in this case first criteria is in cell: "A1", but need to add Criteria from "A3"

  4. #4
    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
    80,647

    Re: Return Unique list based on Multiple Criteria

    See if this works for you:

    =IFERROR(INDEX('Act. Report'!$C$2:$C$55, MATCH(0, IF($A$1='Act. Report'!$A$2:$A$55, IF($A$3='Act. Report'!$B$2:$B$55, COUNTIF($A$3:$A3, 'Act. Report'!$C$2:$C$55), "")), 0)), "")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  5. #5
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Return Unique list based on Multiple Criteria

    This is great, works perfectly.

    I did not think that adding second if will work.

    Thanks a lot

  6. #6
    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
    80,647

    Re: Return Unique list based on Multiple Criteria

    You're welcome! Added items in red:

    =IFERROR(INDEX('Act. Report'!$C$2:$C$55, MATCH(0, IF($A$1='Act. Report'!$A$2:$A$55, IF($A$3='Act. Report'!$B$2:$B$55, COUNTIF($A$3:$A3, 'Act. Report'!$C$2:$C$55), "")), 0)), "")

    Notice the extra closing bracket.

  7. #7
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Return Unique list based on Multiple Criteria

    Thanks again, it works perfectly.

  8. #8
    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
    80,647

    Re: Return Unique list based on Multiple Criteria

    You're welcome.

  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
    80,647

    Re: Return Unique list based on Multiple Criteria

    And for anyone wondering why I have just responded to this after over three years ... I have no idea, but it popped up in my new posts list! Gremlin? Go figure!!!

+ 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. Count numeric uniques using multiple criteria
    By jaypaw in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2017, 02:36 AM
  2. How to get names from a list based on multiple criteria
    By lloyd88 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-15-2016, 11:04 AM
  3. Counting uniques based on several criteria
    By ricdik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2014, 07:40 PM
  4. Return list based on multiple criteria
    By Arcadia in forum Excel General
    Replies: 1
    Last Post: 03-13-2014, 01:54 PM
  5. List Results Based on Multiple Criteria
    By scottcnichols in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-23-2013, 12:30 PM
  6. [SOLVED] Count Uniques within a list based on value of cell...
    By MeatLightning in forum Excel General
    Replies: 3
    Last Post: 03-20-2006, 01:25 PM
  7. [SOLVED] Counting Uniques - multiple criteria
    By Martin Just in forum Excel General
    Replies: 2
    Last Post: 01-12-2005, 07: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