Good morning. I'm a new user to this forum but have been using it for a while now to learn and expand my skill set on different formulas. With that being said, I'm stumped on this one. Here's what I'm trying to do with the data below. If the Column D equals "Monitoring" then I want to count unique values in Column B. The formula should only be returning a count of 1 since the Testing Name in Column B is the same even though there are 2 entries for monitoring in Column D. I tried writing the formula below but am not having any luck. I also need this formula to work for blank cells. Can someone have a double look at the formula I've used below and let me know where I'm messing up? Thank you all very much for your help.
FORMULA USED:
=SUM(--(FREQUENCY(IF(B3:B31<>"",IF(D3:D31="Monitoring",MATCH(B3:B31,B3:B31,0))),ROW(B3:B31)-ROW(B3)+1)>0))
DATA:
[TABLE="width: 447"]
<tbody>[TR]
[TD]Ref #[/TD]
[TD]Testing Name[/TD]
[TD]Business Area[/TD]
[TD]Testing Type[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Testing 1[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Testing 2[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Testing 3[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Testing 4[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Testing 5[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Testing 6[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Testing 7[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Testing 8[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Testing 9[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Testing 10[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Testing 11[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Testing 12[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Testing 13[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Testing 14[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]Testing 15[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Testing 16[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]Testing 17[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Testing 18[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Testing 19[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]Testing 20[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]Testing 21[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Testing 22[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]Testing 23[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]Testing 24[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]Testing 25[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]26[/TD]
[TD]Testing 26[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]Testing 27[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]28[/TD]
[TD]Testing 28[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]29[/TD]
[TD]Testing 29[/TD]
[TD]Commercial Lending[/TD]
[TD]Monitoring[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]Testing 29[/TD]
[TD]Corporate[/TD]
[TD]Monitoring[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]
FORMULA USED:
=SUM(--(FREQUENCY(IF(B3:B31<>"",IF(D3:D31="Monitoring",MATCH(B3:B31,B3:B31,0))),ROW(B3:B31)-ROW(B3)+1)>0))
DATA:
[TABLE="width: 447"]
<tbody>[TR]
[TD]Ref #[/TD]
[TD]Testing Name[/TD]
[TD]Business Area[/TD]
[TD]Testing Type[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Testing 1[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Testing 2[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Testing 3[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Testing 4[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Testing 5[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Testing 6[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Testing 7[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Testing 8[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Testing 9[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Testing 10[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Testing 11[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Testing 12[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Testing 13[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Testing 14[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]Testing 15[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Testing 16[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD]Testing 17[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Testing 18[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Testing 19[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]Testing 20[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]Testing 21[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]22[/TD]
[TD]Testing 22[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]Testing 23[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]Testing 24[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]Testing 25[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]26[/TD]
[TD]Testing 26[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]Testing 27[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]28[/TD]
[TD]Testing 28[/TD]
[TD]Corporate[/TD]
[TD]Testing[/TD]
[/TR]
[TR]
[TD]29[/TD]
[TD]Testing 29[/TD]
[TD]Commercial Lending[/TD]
[TD]Monitoring[/TD]
[/TR]
[TR]
[TD]30[/TD]
[TD]Testing 29[/TD]
[TD]Corporate[/TD]
[TD]Monitoring[/TD]
[/TR]
</tbody><colgroup><col><col><col><col></colgroup>[/TABLE]