+ Reply to Thread
Results 1 to 8 of 8

Unique name count on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Unique name count on multiple criteria

    Hello,

    Please see the attached file.

    I want the result of unique/distinct name based on multiple criteria.

    Thanks!
    Attached Files Attached Files
    If I've been of help, plz add reputation.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Unique name count on multiple criteria

    Try this -

    Please Login or Register  to view this content.
    See the file attached..
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Unique name count on multiple criteria

    Quote Originally Posted by NeedForExcel View Post
    Try this -

    Please Login or Register  to view this content.
    See the file attached..
    Awesome, thanks for the code but one more thing:-

    The only thing that this code doesn't consider is the date criteria. I have like thousands of rows with different dates.

    Just need the date criteria in the code and I can give date as a cell reference in my main sheet.

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Unique name count on multiple criteria

    How do you want the date to be influencing the code?

    Can you clarify a bit?

  5. #5
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Unique name count on multiple criteria

    Quote Originally Posted by NeedForExcel View Post
    How do you want the date to be influencing the code?

    Can you clarify a bit?
    Suppose I have 100 rows of data with different dates, I want to have a date in a cell and retrieve the result of distinct names for specific time intervals for that specific date.

    For a part of my question I was able to get just the count with this array formula :- =SUM(IF(($B$4=$B$2:$B$14)*($C$2:$C$14=$C$2),1/COUNTIFS($B$2:$B$14,$B$4,$A$2:$A$14,$A$2:$A$14,$C$2:$C$14,$C$2),0))

    getting the unique names as well with your code is just awesome for me.

    hope this is clear.

    thanks!

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Unique name count on multiple criteria

    I guess this should do it..

    Assuming you have your date in Cell H1

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: Unique name count on multiple criteria

    Aaaweesomeeeeeee... Thanks a ton!

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Unique name count on multiple criteria

    Glad I could help!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Count Unique Values with multiple criteria
    By TotallyLost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2015, 10:24 AM
  2. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  3. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  4. Count Unique Values, but with multiple criteria
    By the northern monkey in forum Excel General
    Replies: 3
    Last Post: 02-02-2012, 07:45 AM
  5. Excel 2007 : Count unique vales w/ multiple criteria
    By jhendrix in forum Excel General
    Replies: 8
    Last Post: 01-22-2010, 11:48 AM
  6. [SOLVED] Count Unique Values with Multiple Criteria
    By JohnV in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2006, 01:10 PM

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