+ Reply to Thread
Results 1 to 4 of 4

Count Distinct and SUMIF to find unique text values

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    31

    Count Distinct and SUMIF to find unique text values

    Good Morning!

    I'm aware Count Distinct doesn't exist as a function in Excel but I'm looking for some help on an alternative to return the number of unique text values based on one criteria.

    I've attached a shortened example but I basically need to count the number of consultants working on particular projects.
    So I have a huge time sheet and I need to be able to say 'X' amount of Consultants worked on Project A, 'Y' on Project B etc. etc.

    I've managed to do the Count Distinct part - ={SUM(1/COUNTIF(I4:I12,I4:I12))} but not sure how to build in the criteria to say only for 'Project A'

    Any help would be hugely appreciated
    Kindets regards,
    Laura
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Count Distinct and SUMIF to find unique text values

    Try this ...

    =SUM(IF($H$4:$H$12=B4,1/COUNTIFS($H$4:$H$12,B4,$I$4:$I$12,$I$4:$I$12)))

  3. #3
    Registered User
    Join Date
    09-24-2015
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    31

    Re: Count Distinct and SUMIF to find unique text values

    Thank you, Phuocam!
    That works absolutely perfectly

  4. #4
    Registered User
    Join Date
    09-24-2015
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    31

    Re: Count Distinct and SUMIF to find unique text values

    Thank you, Phuocam!
    That works absolutely perfectly

+ 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. Replies: 17
    Last Post: 04-11-2016, 11:14 PM
  2. [SOLVED] SUMIF array formula to count unique values after a certain date
    By CakeMish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2015, 09:24 AM
  3. [SOLVED] Excel - Count distinct occurences and copy unique values
    By random0munky in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2015, 10:41 PM
  4. Replies: 5
    Last Post: 03-13-2012, 06:05 AM
  5. Count of distinct (unique) values by day
    By velorian in forum Excel General
    Replies: 7
    Last Post: 12-06-2011, 05:03 PM
  6. Pivot Tables-To Find Count of Unique(Distinct)User id within the same Journal Entry.
    By Deepthik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2010, 06:09 AM
  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