+ Reply to Thread
Results 1 to 3 of 3

Unique list using Index, Match, and CountIf

  1. #1
    Registered User
    Join Date
    03-21-2016
    Location
    Auburn, AL
    MS-Off Ver
    2013
    Posts
    3

    Unique list using Index, Match, and CountIf

    This was a post on a previous forum entry from yesterday. I'm new to this deal, and the post said that it was solved, so I'm not sure if anyone would get notifications to respond to it or not. Anyways, I'm trying to create a list of unique values from a much larger list. See the original response below to understand what is going on and what I am asking.

    I copied and modified the formula listed in this quote, and it worked. However, I do not fully understand why, and I'd like to. Can someone walk me through the COUNTIF criteria that uses a range of cells; I've been playing on Excel with some stuff and can't seem to figure out what it is doing (for example, COUNTIF(A2:A1000, B2:B4)). I initially thought that it would count how many values in A2:A:1000 matched any of the values in B2:B4, but this doesn't seem to be the case. Can someone provide insight as to what it is doing?

    Then, I would like someone to explain what this counted number will do in the MATCH function. It is in the lookup_array section, but I don't understand what good a lookup array of 0 or 6 or any single numerical value would do here. Thanks for any help provided.

    Quote Originally Posted by Tony Valko View Post
    Try this...

    Assuming no empty cells within the range of interest in column A.

    Data Range
    A
    B
    C
    1
    All Names
    Uniques
    Count
    2
    BOB
    BOB
    2
    3
    STACY
    STACY
    2
    4
    TOM
    TOM
    1
    5
    STACY
    GEORGE
    1
    6
    BOB
    7
    GEORGE


    This array formula** entered in B2:

    =IFERROR(INDEX(A$2:A$100,MATCH(0,COUNTIF(B$1:B1,A$2:A$100),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    This formula entered in C2:

    =IF(B2="","",COUNTIF(A:A,B2))

    Select B2:C2 and copy down until you get blanks.
    Last edited by Jake Whaley; 03-22-2016 at 01:25 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Unique list using Index, Match, and CountIf

    Look here ..

    http://www.get-digital-help.com/2009...uniquedistinct

  3. #3
    Registered User
    Join Date
    03-21-2016
    Location
    Auburn, AL
    MS-Off Ver
    2013
    Posts
    3
    Quote Originally Posted by JohnTopley View Post
    Thanks John. This really clears things up!

+ 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] Creating a unique alphabetical list (using INDEX and MATCH functions)
    By mullahraheil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2013, 07:17 AM
  2. [SOLVED] Help to create a Index / Match list of unique values.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2013, 04:44 PM
  3. [SOLVED] IF,COUNTIF, INDEX,MATCH problem to list-out eligible name list.
    By pejoi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2013, 06:25 AM
  4. Index and Match Unique values from list
    By thelegazy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2013, 02:49 AM
  5. Replies: 2
    Last Post: 02-02-2013, 05:24 PM
  6. Replies: 4
    Last Post: 07-16-2012, 06:22 AM
  7. [SOLVED] Countif Unique Records in List Match Criteria
    By gjohn282 in forum Excel General
    Replies: 5
    Last Post: 07-16-2012, 04:15 AM
  8. Replies: 6
    Last Post: 05-12-2006, 04:40 PM

Tags for this Thread

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