+ Reply to Thread
Results 1 to 4 of 4

Extract unique list from table that complies to multiple criteria

  1. #1
    Forum Contributor
    Join Date
    05-02-2012
    Location
    Mosselbaai, Suid Afrika
    MS-Off Ver
    Excel 2016
    Posts
    107

    Extract unique list from table that complies to multiple criteria

    EXTRACT UNIQUE LIST FROM TABLE THAT COMPLIES TO MULTIPLE CRITERIA

    I have an Excel table named “DataTable” with the following headings:
    Inc. ID
    Description
    Inc. Grp
    Incident Priority
    Inc. Plant
    Inc. Status
    Inc. Closed Date
    Incident Owner Name

    I use the following array formula to extract a unique list of “Incident Owner Names”:

    {=IFERROR(INDEX(INDIRECT($B$2&"[Incident Owner Name]"), MATCH(0,COUNTIF($K$5:K5, INDIRECT($B$2&"[Incident Owner Name]")), 0)),"")}

    Where cell B2 has the name of the table, i.e. “DataTable”.

    The formula is placed in cell K6 and dragged down far enough to cover all names.

    What is required is an array formula that excludes a fixed list of names, in this case:
    TP Jacobs
    CN Pieterse
    BS Johnson
    L Mcain
    G Pelser

    It must give a unique list of “Incident Owner Names”, where the following is true for at least one table entry, while excluding the above list:
    Plant = “PLANT ONE”
    Incident Priority – “001”
    Inc. Status = “Closed”

    This must be achieved without filtering or Pivot Tables.

    Can this be done?

    Best Regards,
    Henk Stander
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Extract unique list from table that complies to multiple criteria

    Try the array formula in the yellow-shaded cells. As far as I can see, it's returning the desired results. I don't know whay you were using the iNDIRECT function, however...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    05-02-2012
    Location
    Mosselbaai, Suid Afrika
    MS-Off Ver
    Excel 2016
    Posts
    107

    Re: Extract unique list from table that complies to multiple criteria

    @Glenn Kennedy:
    Thank you Glen, it is definitely a workable solution. The reason for the Indirect is that the table is generated from imported data with a variable name. Having the name in a cell made the formulas easier and also gave a check for the table name.

    I like the simplicity of your solution.

    "{=IFERROR(INDEX(INDIRECT($B$2&""[Incident Owner Name]""),MATCH(0,INDEX(
    IF(INDIRECT($B$2&""[Incident Owner Name]"")<>$K$29,
    IF(INDIRECT($B$2&""[Incident Owner Name]"")<>$K$30,
    IF(INDIRECT($B$2&""[Incident Owner Name]"")<>$K$31,
    IF(INDIRECT($B$2&""[Incident Owner Name]"")<>$K$32,
    IF(INDIRECT($B$2&""[Incident Owner Name]"")<>$K$33,
    IF(INDIRECT($B$2&""[Inc. Plant]"")=""Plant one"",
    IF(INDIRECT($B$2&""[Incident Priority]"")=""001"",
    IF(INDIRECT($B$2&""[Inc. Status]"")=""Closed"",
    COUNTIF($L$5:$L5,$I$5:$I$70))))))))),0),0)),"""")}"

    Best Regards,
    Henk Stander

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Extract unique list from table that complies to multiple criteria

    You're welcome & thanks for the Rep.

+ 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: 5
    Last Post: 09-04-2016, 07:09 AM
  2. Extract Unique data based on multiple criteria
    By ajaypal.sp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2016, 01:13 PM
  3. [SOLVED] Using Macro to Extract unique data with multiple criteria
    By Xiaojiang in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-09-2015, 11:56 PM
  4. [SOLVED] Extract Unique Text Values based on Multiple Criteria
    By Kattenhove in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-26-2014, 07:59 AM
  5. [SOLVED] Extract unique values from a table and list along a row
    By doctorblyth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2013, 04:33 PM
  6. [SOLVED] Extract unique values out of list based on an extra criteria
    By sven1975 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 05:02 AM
  7. Replies: 0
    Last Post: 09-26-2006, 09:42 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