+ Reply to Thread
Results 1 to 9 of 9

How to Count Unique Values in a Column

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    How to Count Unique Values in a Column

    hi all, I could use some assistance. I want to be able to count the values in a column that are UNIQUE ONLY. See example below:

    Column A = GREEN
    Column A = BLUE
    Column A = GREEN
    Column A = RED

    i want to be able to return a value of 2, not 3. I don't want to count the value GREEN at all.

    Any help is much appreciated!!!!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to Count Unique Values in a Column

    Try

    =SUMPRODUCT(1/COUNTIF(A1:A4,A1:A4))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: How to Count Unique Values in a Column

    place this in a direfent column than A for every entry. at the top of that column the add the 1s.
    =IF(COUNTIF(A:A,A4)>1,0,1)

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to Count Unique Values in a Column

    Quote Originally Posted by Ace_XL View Post
    Try

    =SUMPRODUCT(1/COUNTIF(A1:A4,A1:A4))
    This is giving me an error of dividing by 0

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: How to Count Unique Values in a Column

    =SUM(SIGN(FREQUENCY(IF(COUNTIF(A1:A4,A1:A4)=1,MATCH(A1:A4,A1:A4,0)),MATCH(A1:A4,A1:A4,0))))

    Ctrl+Shift+Enter, not just Enter

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to Count Unique Values in a Column

    Maybe this non CSE formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    10-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to Count Unique Values in a Column

    worked...thanks everyone!!!!!

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: How to Count Unique Values in a Column

    You're Welcome!

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to Count Unique Values in a Column

    Quote Originally Posted by saint01 View Post
    worked...thanks everyone!!!!!
    For the benefit of others that might peruse this thread ... what worked for you?

+ 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