+ Reply to Thread
Results 1 to 3 of 3

Creating Unique List based on specific criteria

  1. #1
    Registered User
    Join Date
    10-09-2017
    Location
    Essex, UK
    MS-Off Ver
    Office 2016
    Posts
    1

    Creating Unique List based on specific criteria

    Hi All, first time poster long time user of excel. I am building a large spreadhseet that manipulates data and i'm struggling to extract the relevant data. can anyone offer help and insight into how it works.

    In this example I have a jumbled list of Animals with numbers

    Column A;

    BIRD 10
    BIRD 1
    DOG 6
    DOG 5
    DOG 4
    DOG 3
    DOG 2
    CAT 2
    CAT 1
    BIRD 9
    BIRD 8
    DOG 10


    The idea is to create a list in column b that only has the word "dog" in it

    DOG 6
    DOG 5
    DOG 4
    DOG 3
    DOG 2
    DOG 10

    I know it will be an array of sorts and I have tried to understand it but I can not see or understand google results to make a list based on partial cell criteria.

    Any help would be great

    Thanks
    Dan
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Creating Unique List based on specific criteria

    In B1, try this:

    =IFERROR(INDEX($A$1:$A$29,SMALL(IF(LEFT($A$1:$A$29,3)="DOG",ROW($A$1:$A$29)-(ROW($A$1)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Creating Unique List based on specific criteria

    this may be a good time to learn about COLLECTIONS and classes.

    A collection is an advanced array because you can index it. Instead of searching thru every item to find yours,
    just ask for it directly. colZoo("DOG").NAME

    Shown is a class cANIMAL, that has a NAME, and QTY.
    the code picks up an animal, its species name and counts it
    it adds the Class to the collection. If already there, ignore the error, then update the Qty of the count.


    Please Login or Register  to view this content.

    paste the following code into Notepad and save the file....say: clsAnimal.txt
    then in VBE where your modules are,
    menu: FILE, IMPORT FILE, clsAnimal.txt
    this new class will show in the Project thats used above.

    Please Login or Register  to view this content.
    Last edited by ranman256; 10-09-2017 at 09:45 AM.

+ 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] VBA Creating a list of unique values from one column based on criteria from another column
    By bilbo85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2016, 02:38 PM
  2. [SOLVED] create a unique list based on a specific phrase
    By joannelittell in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-30-2013, 04:01 AM
  3. [SOLVED] Create a list of unique entries that did not meet a specific criteria
    By joannelittell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2013, 12:08 PM
  4. [SOLVED] Create list based on criteria and is unique
    By joannelittell in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-13-2013, 02:33 PM
  5. [SOLVED] Create unique list based on specific criteria
    By Joynesy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-21-2013, 05:54 AM
  6. counting unique values from list with specific criteria
    By derekjames in forum Excel General
    Replies: 2
    Last Post: 12-16-2011, 06:28 PM
  7. Reassign unique ids based on specific criteria
    By wanna_learn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2011, 01:26 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