+ Reply to Thread
Results 1 to 3 of 3

Count unique with two variables

  1. #1
    Forum Contributor
    Join Date
    10-30-2008
    Location
    Los Angeles
    Posts
    144

    Count unique with two variables

    Hi all:

    I am trying to find a formula that will count the number of unique occurences with two variables (Department and Period).

    Since a person can be listed in the department more than once for each period, I need to find the unique number for each department by period. I have attached a simple file as an example. Any formula would go in the yellow area.

    Thanks to all

    Max
    Attached Files Attached Files
    Last edited by maxthebear; 04-23-2009 at 03:46 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count unique with two variables

    Perhaps:

    L7:
    =SUM(IF(FREQUENCY(IF(($E$7:$E$19=$J7)*($F$7:$F$19=$K7),MATCH($G$7:$G$19,$G$7:$G$19,0)),ROW($F$7:$F$19)-ROW($F$7)+1)>0,1))
    committed with CTRL + SHIFT + ENTER

    copy down as required - remember to reset the array if you alter the formula in anyway.

  3. #3
    Forum Contributor
    Join Date
    10-30-2008
    Location
    Los Angeles
    Posts
    144

    Re: Count unique with two variables

    It works. Thanks a bunch...............

    Max
    Last edited by maxthebear; 04-23-2009 at 03:44 PM. Reason: Mistaken text

+ 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