+ Reply to Thread
Results 1 to 3 of 3

Is there a formula that returns the number of unique text values in an array?

  1. #1
    Registered User
    Join Date
    07-02-2008
    Location
    UK
    Posts
    4

    Is there a formula that returns the number of unique text values in an array?

    Hi again,

    As the thread title - say I had an array, column A rows 1-10. In the 10 cells the individual text values A, B, and C were entered in a random order for example B, C, C, B, B, A, B, C, A, C. Is there a formula that will return the value "3", the total of unique text entries?

    Thanks.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474
    Quote Originally Posted by theGFB
    Hi again,

    As the thread title - say I had an array, column A rows 1-10. In the 10 cells the individual text values A, B, and C were entered in a random order for example B, C, C, B, B, A, B, C, A, C. Is there a formula that will return the value "3", the total of unique text entries?

    Thanks.
    Give this a try,
    =SUMPRODUCT((A1:A100<>"")/COUNTIF(A1:A100,A1:A100&""))
    adjust your range to suite

  3. #3
    Registered User
    Join Date
    07-02-2008
    Location
    UK
    Posts
    4
    Thanks that's great. I have actually used that method before in some on time/in full statistics but forgot about it

+ 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