Hey Guys,
Have the following data set (see below) and I am looking to count non-duplicates based on two sets of criteria.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]MDU[/TD]
[TD]Status[/TD]
[TD]Internal/External[/TD]
[TD]Premises[/TD]
[/TR]
[TR]
[TD]Saint Annes Court[/TD]
[TD]Complete[/TD]
[TD]Intneral[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Setanta House[/TD]
[TD]Complete[/TD]
[TD]Internal[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Shorts Court[/TD]
[TD]Complete[/TD]
[TD]Internal[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
To count non-duplicates based on one set of criteria I am using the following equation:
But now lets say I want to count non-duplicate MDU's based on two sets of Criteria, Complete and Internal. I tried the following equation:
But this only returns #VALUE ! - Anyone have any idea what I am doing wrong with the equation above, or if there is an easier equation I can use to achieve this?
Thanks in advance,
Patrick (DeusXv)
Have the following data set (see below) and I am looking to count non-duplicates based on two sets of criteria.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]MDU[/TD]
[TD]Status[/TD]
[TD]Internal/External[/TD]
[TD]Premises[/TD]
[/TR]
[TR]
[TD]Saint Annes Court[/TD]
[TD]Complete[/TD]
[TD]Intneral[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Seatown Place[/TD]
[TD]Complete[/TD]
[TD]External[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Setanta House[/TD]
[TD]Complete[/TD]
[TD]Internal[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Shorts Court[/TD]
[TD]Complete[/TD]
[TD]Internal[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
To count non-duplicates based on one set of criteria I am using the following equation:
Code:
[INDENT]{=SUMPRODUCT(IF(FREQUENCY(MATCH($A$2:$A$7,$A$2:$A$7,0),MATCH($A$2:$A$7,$A$2:$A$7,0))>0,1,0), IF($B$2:$B$8="Complete", 1, 0))}[/INDENT]
Code:
[INDENT]{=SUMPRODUCT(IF(FREQUENCY(MATCH($A$2:$A$7,$A$2:$A$7,0),MATCH($A$2:$A$7,$A$2:$A$7,0))>0,1,0), IF(AND($B$2:$B$8="Complete",$C$2:$C$8="Internal"), 1, 0))}[/INDENT]
Thanks in advance,
Patrick (DeusXv)