+ Reply to Thread
Results 1 to 4 of 4

Unique list with AND and OR logic as multiple criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Unique list with AND and OR logic as multiple criteria

    Hi,

    I'm trying to develop a unique list with multiple criteria. In my attachment, Column A has the data to look at, Column F has the result. I was trying to create a formula similar to the ones found here: https://www.ablebits.com/office-addi...tiple-criteria.

    The main criterias are to list unique values based on:
    *If the data contains "FDBK" or "CMD" somewhere in the name
    *Remove blanks from the unique list
    *Display only unique values in addition to the first two criteria

    Please let me know if you can help out with this. I feel I am somewhat close, I'm guessing I need to use a combination of COUNTIFS and COUNTIF somehow.... Maybe I need the value to return a value of one, though?
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique list with AND and OR logic as multiple criteria

    This array formula** entered in F2:

    =IFERROR(INDEX(A$2:A$40,MATCH(0,IF(ISNUMBER(FIND("_FDBK",A$2:A$40))+ISNUMBER(FIND("_CMD",A$2:A$40)),COUNTIF(F$1:F1,A$2:A$40)),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Unique list with AND and OR logic as multiple criteria

    Thank you, Tony!! This works well

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique list with AND and OR logic as multiple criteria

    You're welcome. Thanks for the feedback!

+ 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: 01-03-2017, 08:40 AM
  2. [SOLVED] Extract unique list from table that complies to multiple criteria
    By Henk Stander in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2016, 05:41 AM
  3. [SOLVED] List unique values based on multiple criteria
    By tangmere.milli in forum Excel General
    Replies: 6
    Last Post: 01-22-2016, 07:56 AM
  4. Unique list from multiple responses to multiple criteria
    By 0Stump3 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-12-2015, 12:11 PM
  5. Create Unique List from Multiple Criteria
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2015, 04:20 PM
  6. [SOLVED] List unique values corresponding to certain criteria from across multiple sheets
    By andredl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2014, 12:37 AM
  7. [SOLVED] Productsum: Multiple criteria; List highest sum first; Unique Categories
    By T86157 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2012, 12:11 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