+ Reply to Thread
Results 1 to 10 of 10

Unique list with multiple criteria

  1. #1
    Registered User
    Join Date
    04-27-2017
    Location
    London
    MS-Off Ver
    MS Office 2013
    Posts
    38

    Unique list with multiple criteria

    Hello,

    Hoping for some help with obtaining a unique list with a formula.

    Effectively, I would like to reference one large data sheet and output a unique list on another sheet based upon the following criteria:

    - IF (Data!$B:$B) matches $I$2 in Sheet1
    - IF (Data!$H:$H) matches $A$3 in Sheet1
    - Then produce unique list from (Data!$AC) in B5 down on Sheet1

    Hope I've outlined that clear enough and hope this is possible. Much appreciate the support!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Unique list with multiple criteria

    Something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I've set the Data sheet ranges for rows 2:100, this can be adjusted as needed to a realistic range, with the exception of the INDEX range (which must be a full column) this type of formula is not suitable for use with entire columns, unless you want to wait a few days every time it recalculates

  3. #3
    Registered User
    Join Date
    04-27-2017
    Location
    London
    MS-Off Ver
    MS Office 2013
    Posts
    38

    Re: Unique list with multiple criteria

    Thanks Jason and well noted on the recalculation front, it's quite a large data set (10k rows) so is my best bet then a macro for what I'm looking to achieve.

    On your formula, it's given a too many arguments error.

    Appreciate your support.

  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,916

    Re: Unique list with multiple criteria

    Shall I move this to the VBA section for you?
    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.

  5. #5
    Registered User
    Join Date
    04-27-2017
    Location
    London
    MS-Off Ver
    MS Office 2013
    Posts
    38

    Re: Unique list with multiple criteria

    If you could I would appreciate it

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Unique list with multiple criteria

    My bad, I typed the formula here instead of excel, I think you would have seen a 'too few' error rather than 'too many', I missed the ,"" in iferror.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    vba should only be a last resort if the formula proves not practical.

    10k rows might not be too bad, the efficiency will depend on the number of unique entries as well.

    To maximise efficiency, dynamic named ranges could be useful, or format the data as a structured table.

  7. #7
    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,916

    Re: Unique list with multiple criteria

    Try the formula first. Let us know how it goes.

  8. #8
    Registered User
    Join Date
    04-27-2017
    Location
    London
    MS-Off Ver
    MS Office 2013
    Posts
    38

    Re: Unique list with multiple criteria

    Thanks Jason, however, am now getting a Circular Reference Warning and can't quite see where this is occurring.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Unique list with multiple criteria

    Third time lucky
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The first B5 should have been B4 (it needs to look at the cell above).

    Note that I've assumed B4 conatians header text of some kind. If B4 is part of a merged cell then it could cause additional errors.

    While a sample file is not strictly necessary, it is (with an accurate representation) an advantage as it would enable us to get it right first time (or closer with a more complex requirement).

  10. #10
    Registered User
    Join Date
    04-27-2017
    Location
    London
    MS-Off Ver
    MS Office 2013
    Posts
    38

    Re: Unique list with multiple criteria

    Quote Originally Posted by jason.b75 View Post
    Third time lucky
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The first B5 should have been B4 (it needs to look at the cell above).

    Note that I've assumed B4 conatians header text of some kind. If B4 is part of a merged cell then it could cause additional errors.

    While a sample file is not strictly necessary, it is (with an accurate representation) an advantage as it would enable us to get it right first time (or closer with a more complex requirement).
    Amazing, thanks Jason it works as requested. Really appreciate the support

+ 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. [SOLVED] Unique list with criteria, criteriarange multiple columns.
    By bakerman2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-23-2018, 09:10 AM
  3. Extract Unique List Based on multiple criteria
    By Herbiec09 in forum Excel General
    Replies: 7
    Last Post: 01-14-2017, 07:23 AM
  4. [SOLVED] Unique list with AND and OR logic as multiple criteria
    By T86157 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2017, 09:21 PM
  5. 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
  6. Create Unique List from Multiple Criteria
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2015, 04:20 PM
  7. [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

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