+ Reply to Thread
Results 1 to 9 of 9

Count unique value occuirences

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Count unique value occuirences

    Hello all

    I have a large list of data (shrunk for example purpose here)

    I have done a uniqe sort in column C.. in column D, I want a formula to count the number of unique times the value appears in column A.. so 'Paco Rabanne' for example, I want '1' to be returned instead of 5......

    Can someone help please?
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count unique value occuirences

    is this what you want?
    =COUNTIF($A$2:$A$21,C2)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Count unique value occuirences

    Hi Sam

    I got a value of '3' returned' for '& soda' - whereas I want it to be like a count of how many unique values exist... so I don't want to have '& soda' counted 3 times, I want a value of '1' to be returned to say the value '& soda' is one unique value, then James Bond 007 and so on...

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count unique value occuirences

    so you are saying that no matter how many times James Bond 007 appears, you want the count to be 1 as long as it appears at least once?
    if true then this...? =IF(COUNTIF($A$2:$A$21,C2)>0,1,0)
    not crazy about the formula as I think there is a better formula in office 365 using unique but not in my version of excel.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count unique value occuirences

    or if you are looking for an overall count of unique values in the list in col A, this? =SUMPRODUCT(1/COUNTIF(A2:A21,A2:A21))

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Count unique value occuirences

    something like this?

    Name Count Count Distinct
    & Soda
    3
    1
    James Bond 007
    7
    1
    Paco Rabanne
    5
    1
    10 Minute
    4
    1
    Paco Rabannes1
    1
    1


    or

    CountUnique
    5
    Last edited by sandy666; 02-08-2023 at 08:55 AM.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Count unique value occuirences

    In C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you want 1 instead of actual count
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To count unique values in column A. In F2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 02-08-2023 at 11:14 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Count unique value occuirences

    THANK YOU SAM YOUR POST AT 12.34 pm helped!

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count unique value occuirences

    Glad I was able to help, AND thank you for the rep!

+ 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] Count number of unique values corresponding to unique data in another column
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2019, 12:32 PM
  2. Create a unique list with a count against the unique values
    By barber87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2017, 10:13 AM
  3. Create unique # of worksheets based on list count with unique names
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2016, 09:51 AM
  4. [SOLVED] Unique Total Value Count per Unique Lookup Values
    By KnightVision in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2014, 05:03 AM
  5. [SOLVED] Count unique entries based off unique criteria in another column
    By hambly in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-11-2014, 03:33 PM
  6. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  7. Replies: 17
    Last Post: 08-24-2009, 08:58 AM

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