+ Reply to Thread
Results 1 to 2 of 2

Return a unique list from two columns based on a criteria

  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Return a unique list from two columns based on a criteria

    Hi all,

    I am looking for a formula that will return a unique list from two columns based on if it meets the criteria from another column


    Table 1

    Department 1------Sub Dept 1
    Department 1------Sub Dept 1
    Department 1------Sub Dept 2
    Department 1------Sub Dept 3
    Department 1------Sub Dept 5
    Department 2------Sub Dept 1
    Department 2------Sub Dept 2

    Table 2
    Department 1------Sub Dept 1
    Department 1------Sub Dept 2
    Department 1------Sub Dept 3
    Department 1------Sub Dept 4
    Department 2------Sub Dept 1
    Department 2------Sub Dept 2


    Return a unique sub department list for Department 1

    Unique List

    Sub Dept 1
    Sub Dept 2
    Sub Dept 3
    Sub Dept 4
    Sub Dept 5

    Hope that makes sense, I know how to get the unique lists with criteria but, am struggling to get it to look at two tables and return one results.

    Any help would be very much appriciated.

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

    Re: Return a unique list from two columns based on a criteria

    Given that there are only two "tables" this is manageable using this proposed method.
    The 'helper' column, which may be moved and/or hidden for aesthetic purposes, displays all sub dept's in department 1 using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The 'final' column displays sorted unique values using*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Denotes an array entered formula which is 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.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Return Unique list based on Multiple Criteria
    By G.Bregvadze in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-29-2021, 12:57 PM
  2. Replies: 1
    Last Post: 03-01-2018, 01:18 PM
  3. [SOLVED] Array to concatenate columns and then return unique list
    By Skiptomylou in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-02-2017, 04:02 PM
  4. Replies: 8
    Last Post: 05-08-2017, 09:17 PM
  5. Return an unique list of data that match criteria
    By tantcu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2017, 04:02 PM
  6. [SOLVED] Look in 2 columns return a list of Difference Unique Text/Value
    By nickusami in forum Excel General
    Replies: 7
    Last Post: 10-29-2015, 03:22 PM
  7. Return a list of cell values based on criteria in other columns
    By Mikeyd74 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-16-2015, 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