+ Reply to Thread
Results 1 to 3 of 3

Counting unique instances in an array.

  1. #1
    Registered User
    Join Date
    02-13-2009
    Location
    MA, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Counting unique instances in an array.

    Can someone help me with this?

    I want to use a formula that will look at an array of cells and tell me how many unique values there are.

    For example, in the array below, the answer would be 4.

    A
    A
    A
    B
    B
    C
    C
    C
    C
    D
    D

    Is there an easy formula for this?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Counting unique instances in an array.

    Try this formula where your data is in A1:A10

    =SUMPRODUCT((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&""))

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting unique instances in an array.

    =SUMPRODUCT((A1:A6<>"")/(COUNTIF(A1:A6,A1:A6&"")))
    assuming cells are text and you make the range equal yours

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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