+ Reply to Thread
Results 1 to 10 of 10

Lookup Unique based on Multiple Conditions

  1. #1
    Registered User
    Join Date
    11-07-2007
    Posts
    38

    Lookup Unique based on Multiple Conditions

    I am looking for a solution other than using an advanced data filter for unique records only.

    I would like to take a large list (columns A:D), and automatically filter for unique records and other conditions and paste the results in different tables (Group A & Group B).

    Group A only includes records with value ="A" in the checksheet column.
    Group B includes records with value <>"A" in the checksheet column.

    Does anyone have any ideas how to do this so that when I paste the large list in columns A:D, the other tables (Group A & Group B) are automatically populated?

    SEE ATTACHED:


    Thanks,
    Attached Files Attached Files
    Last edited by statenja; 01-02-2009 at 02:29 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Why the prepossession against advanced filter?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Lookup Unique based on Multiple Conditions

    If you don't mind having an Item Count....Have you considered using a Pivot Table?

    See the edited version of your posted file (attached) for examples.

    Does that help?
    Post back with more questions.
    Attached Files Attached Files
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    11-07-2007
    Posts
    38
    To answer SHG's question "Why the prepossession against advanced filter? "

    If the tables were created automatically after the paste operation, there would only be the paste step. Using the advanced filter the user would have to paste, click on advanced filter, unique record and then sort by checksheet and then paste the applicable rows into each table. This increases the possibility for user error, especially since the people using the spreadsheet don't all have a great deal of excel knowledge.

    To answer Ron's question "what about using a pivot table?"

    I like that possibility because that is only one click to refresh the source data, but it creates another challenge. After the unique tables are created, I am using each of the values (team,checksheet,record#,finding#) to perform a lookup function. With the pivot table if there are multiple Record #'s with the same Team and Checksheet, then the pivot table makes blank cells after the first record. (cells G12, H12, M12, N12, O12, M14 in Ron's attached file) When there are blank cells, the lookup function does not work.


    I am not sure if it is possible to perform this operation in one step or not, but I thought it would be worthwhile to ask. Thank you very much for your responses!!!

  5. #5
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251
    Hold your horses!

    Check out the file attached.
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    Cor blimey!!!!!!!!

  7. #7
    Registered User
    Join Date
    11-07-2007
    Posts
    38
    Steve R,

    Thanks for the reply. The solution you provided seems to do just what I was looking for. I am having some trouble converting this solution into my real spreadsheet. and I am having some great difficulty understanding how this function works. Could you provide some insight about how this function works, so that I will be able to get a better grasp on the way it works. I noticed that the formula seems to be the exact same for all cells in each table (group a and b)?

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Lookup Unique based on Multiple Conditions

    I attached a formula based solution that uses "helper" cells to reduce the complexity of the formulas.

    For each Group:
    One cell counts the number of unique items that exist for that group.
    Other cells identify the row numbers for those unique items.

    Is that something you can work with?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-07-2007
    Posts
    38
    Yes, that helps a bunch. Thank you very much!!!

  10. #10
    Forum Contributor
    Join Date
    10-11-2007
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    251

    Re: Lookup Unique based on Multiple Conditions

    I have attached a file containing a slightly easier array formula than my previous attached file.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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