Closed Thread
Results 1 to 8 of 8

Extract Unique List Based on multiple criteria

  1. #1
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Extract Unique List Based on multiple criteria

    Good morning All.

    I have the following formula (courtesy of Siva), that extracts a list of values from a database based on multiple values:

    =IFERROR(INDEX(Database!M:M,SMALL(INDEX(((TRIM(Database!$A$2:$A$69)<>$A$2)+(TRIM(Database!$H$2:$H$69)="Capex"))*10^10+ROW(Database!$H$2:$H$69),0),ROWS(A$6:A6))),"")

    It works brilliantly.

    I need some help taking it one step further. How can I tweak this so that it produces a UNIQUE list; say maybe incorporating the frequency formula?

    Thank you

    H

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Unique List Based on multiple criteria

    It depends how you'e defining Unique.

    For this sort of stuff I always use an Advanced Data Filter on the original data and specify the Unique parameter.

    Altenatively add a helper column that uses a formula to determine whether a particular row is Unique or not and filter on the helper column.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract Unique List Based on multiple criteria

    Thanks for the reply Richard,

    However, I am using the above formula to create automated statements by looking into the database for certain transactions. I would prefer not to move away from this formula, because my statements are generated with one click (selection from a dropdown).

    Therefore, the best solution for me would be an adjustment to the above formula so that if it sees more than one value in the database, it only returns the one in the list.

    Thanks

  4. #4
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract Unique List Based on multiple criteria

    Thanks for the reply Richard,

    However, I am using the above formula to create automated statements by looking into the database for certain transactions. I would prefer not to move away from this formula, because my statements are generated with one click (selection from a dropdown).

    Therefore, the best solution for me would be an adjustment to the above formula so that if it sees more than one value in the database, it only returns the one in the list.

    Thanks

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract Unique List Based on multiple criteria

    Would you upload the workbook and give me an example or two of what you expect to see and where for a situation where which needs to deal with multiple frequencies. Please also explain in a note how you have arrived at the result you expect the amended formula to give.

  6. #6
    Registered User
    Join Date
    01-05-2017
    Location
    Harare
    MS-Off Ver
    2016
    Posts
    7

    Re: Extract Unique List Based on multiple criteria

    Hi Richard,

    Please see spreadsheet attached with formula.

    The following values appear more than once as an example:

    Dave 42607Dave Aug-CashConsumables &

    Dave 42577Dave Jul-CashBank Charges

    I would like the list to have only one instance of these values regardless of how many time they appear in the original raw data.

    Many thanks for your help

    Regards

    Herbz
    Attached Files Attached Files

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

    Re: Extract Unique List Based on multiple criteria

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    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,647

    Re: Extract Unique List Based on multiple criteria

    Thread closed. Please continue here: http://www.excelforum.com/showthread.php?t=1168707
    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.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extract List Based on multiple criteria
    By Herbiec09 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2017, 04:21 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. Extract Unique Position code based on multiple criteria
    By ajaypal.sp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2016, 11:16 PM
  4. 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
  5. [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
  6. [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
  7. [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

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