Results 1 to 5 of 5

count unique values based on 1 condition

Threaded View

  1. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: count unique values based on 1 condition

    Or this

    in D2

    =SUMPRODUCT((B1:B6=D1)/COUNTIFS(A1:A6,A1:A6,B1:B6,B1:B6&""))


    For Excel 2003 use this array formula

    =SUM(IF(FREQUENCY(IF((B$1:B$6=D1),MATCH(A$1:A$6,A$1:A$6,0)),MATCH(B$1:B$6,B$1:B$6,0))>0,1))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Row\Col
    A
    B
    C
    D
    1
    Steve Subject1 Subject1
    2
    John Subject2
    2
    3
    Steve Subject1
    4
    Andrew Subject3
    5
    Steve Subject2
    6
    John Subject1
    Last edited by AlKey; 12-05-2014 at 09:37 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count unique text, excluding space, based on one condition
    By asfa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-01-2013, 02:33 PM
  2. Count Unique Discrete Values for specified date and given condition
    By JAUrrutia9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2013, 03:15 PM
  3. Count unique values based on condition
    By pradeev in forum Excel General
    Replies: 4
    Last Post: 06-12-2012, 10:43 AM
  4. Replies: 2
    Last Post: 01-17-2012, 07:48 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