+ Reply to Thread
Results 1 to 4 of 4

Count Unique Value

  1. #1
    Registered User
    Join Date
    03-15-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    24

    Count Unique Value

    Hi, I am trying to count unique values in a column depending on the values in another column. I have tried with countifs but struggeling.

    The answer is in column G

    Would be great to get some help

    Many thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count Unique Value

    Please try at G2
    =COUNT(1/FREQUENCY(IF(F3=$C$2&" "&$C$3:$C$16,MATCH($B$3:$B$16,$B$3:$B$16)),ROW($C$3:$C$16)-ROW($C$2)))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-15-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    24

    Re: Count Unique Value

    That works perfect Thanks for the quick reply

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,722

    Re: Count Unique Value

    Try this:

    =SUM(IF(--RIGHT(F3,1)=$C$3:$C$16,1/(COUNTIFS($C$3:$C$16,--RIGHT(F3,1),$B$3:$B$16,$B$3:$B$16)),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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

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