Here's the type of data I'm dealing with. I know that it would be considerably easier if it was one row per defect, but each row on the defect has other unique information in it (That I don't need for the summary) but do for other purposes so can't delete it)
[TABLE="width: 602"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD]Column H[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD] [/TD]
[TD]Defect No[/TD]
[TD]Defect Outcome[/TD]
[TD] [/TD]
[TD]No of Defects[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD]Pass[/TD]
[TD]2[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD](blank)[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 6[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 7[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 8[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 9[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 10[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 11[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 12[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 13[/TD]
[TD] [/TD]
[TD]2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 14[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 15[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 16[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 17[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 18[/TD]
[TD] [/TD]
[TD]3[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody><colgroup><col><col span="2"><col><col><col><col><col></colgroup>[/TABLE]
The values in Column D will always be the same for each Unique Defect No (Except in error, but no need to cater for!) and I have no idea how many Defects there will be, so presume a range of up to 500 will suffice.
What I'm after is a formula for Cell G3 that will confirm a count of Unique Defect Nos that have the pass criteria or blank value. Been trawling 'internet and having no luck with sumproducts, countif, array formulas etc.
thx
[TABLE="width: 602"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[TD]Column H[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD] [/TD]
[TD]Defect No[/TD]
[TD]Defect Outcome[/TD]
[TD] [/TD]
[TD]No of Defects[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD]Pass[/TD]
[TD]2[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD](blank)[/TD]
[TD]1[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 6[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 7[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Row 8[/TD]
[TD] [/TD]
[TD]1[/TD]
[TD]Pass[/T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</tbody><colgroup><col><col span="2"><col><col><col><col><col></colgroup>[/TABLE]
The values in Column D will always be the same for each Unique Defect No (Except in error, but no need to cater for!) and I have no idea how many Defects there will be, so presume a range of up to 500 will suffice.
What I'm after is a formula for Cell G3 that will confirm a count of Unique Defect Nos that have the pass criteria or blank value. Been trawling 'internet and having no luck with sumproducts, countif, array formulas etc.
thx