+ Reply to Thread
Results 1 to 13 of 13

Formula (array?) to list unique entries that match criteria?

Hybrid View

  1. #1
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula (array?) to list unique entries that match criteria?

    In D2 enter this array formula and copy down

    =IFERROR(INDEX($C$2:$C$11,MATCH(0,IF(B$2:B$11>0,"",COUNTIF(D$1:$D1, $C$2:$C$11)),)),"")

    ...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. Press F2 on that cell and try again.

    Row\Col
    A
    B
    C
    D
    1
    ITEM QTY LOCATION
    2
    Item 1
    -1
    Location 1 Location 1
    3
    Item 2
    1
    Location 2 Location 3
    4
    Item 3
    -1
    Location 3 Location 2
    5
    Item 4
    1
    Location 3
    6
    Item 5
    -1
    Location 3
    7
    Item 6
    1
    Location 3
    8
    Item 7
    -1
    Location 3
    9
    Item 8
    1
    Location 4
    10
    Item 9
    -1
    Location 2
    11
    Item 10
    1
    Location 3
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  2. #2
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Formula (array?) to list unique entries that match criteria?

    Brilliant, thank you!!!!

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: Formula (array?) to list unique entries that match criteria?

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    ITEM QTY LOCATION LOC_RESULTS LOC_TO_MATCH ITEMS_MATCH
    2
    Item 1
    -1
    Location 1 Location 1 Location 3 Item 3
    3
    Item 2
    1
    Location 2 Location 3 Item 5
    4
    Item 3
    -1
    Location 3 Location 2 Item 7
    5
    Item 4
    1
    Location 3
    6
    Item 5
    -1
    Location 3
    7
    Item 6
    1
    Location 3
    8
    Item 7
    -1
    Location 3
    9
    Item 8
    1
    Location 4
    10
    Item 9
    -1
    Location 2
    11
    Item 10
    1
    Location 3


    Okay,
    I'm using this as a form generator, and the table above is close to how I will be using the data. I NEED the array formula in column F to list unique items from column "A" that meet two criteria:
    1) if the value in column "C" matches cell $E$2
    2) if the value in column "B" is a negative value.

    This is the final hurdle, then the rest of this form generator is smooth sailing.

    Thanks for all of you help so far, I really appreciate it!
    Last edited by Rerock; 11-11-2014 at 04:10 PM.

+ 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] Looking to create a list of unique names that match criteria without using an array
    By john dalton in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-28-2014, 04:28 AM
  2. [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
  3. Replies: 2
    Last Post: 02-22-2013, 07:16 AM
  4. Unique list Array Formula dependent of two criteria
    By ron2k_1 in forum Excel General
    Replies: 3
    Last Post: 09-01-2011, 10:50 PM
  5. Non-array formula listing of unique entries in a DB field
    By quatrecouleurs in forum Tips and Tutorials
    Replies: 0
    Last Post: 05-11-2010, 09:45 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