count unique with mulitple criteria
Very expensive, but maybe...
Assuming that that A2:B8 contains the data, let D2 and D3 contain JOB1
and JOB2. Then try...
E2, copied down:
=SUM(IF(FREQUENCY(IF(B$2:B$8=D2,MATCH(A$2:A$8,A$2: A$8,0)+IF(A$2:A$8="Unfi
lled",ROW(A$2:A$8)/10^5)),IF(B$2:B$8=D2,MATCH(A$2:A$8,A$2:A$8,0)+IF(A $2:A
$8="Unfilled",ROW(A$2:A$8)/10^5))),1))
Note that the formula needs to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER.
Hope this helps!
In article ,
ellebelle wrote:
I have a list of data.
Mike JOB1
Karen JOB2
Unfilled JOB1
Unfilled JOB2
Unfilled JOB1
Alex JOB1
Alex JOB1
I want to count the unique person that works on a job, however "unfilled"
always denotes a new person and therefore I do not want it to be unique. eg.
searching for "JOB 1" should give me 4 because i do not want to count Alex
twice but I do want to count Unfilled twice.
Any help appreciated,
Ellen
|