Formula Help Please

rstagman

New Member
Joined
Apr 16, 2018
Messages
7
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]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I've been continuing to work on this since I've posted. all I needed to do was press Ctrl+Shift+Enter and it worked. Sorry for the wasted thread.
 
Upvote 0
Your formula worked for me.
It is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDEF
1
2Ref #Testing NameBusiness AreaTesting Type
31Testing 1CorporateTesting1
42Testing 2CorporateTesting
53Testing 3CorporateTesting
64Testing 4CorporateTesting
75Testing 5CorporateTesting
86Testing 6CorporateTesting
97Testing 7CorporateTesting
108Testing 8CorporateTesting
119Testing 9CorporateTesting
1210Testing 10CorporateTesting
1311Testing 11CorporateTesting
1412Testing 12CorporateTesting
1513Testing 13CorporateTesting
1614Testing 14CorporateTesting
1715Testing 15CorporateTesting
1816Testing 16CorporateTesting
1917Testing 17CorporateTesting
2018Testing 18CorporateTesting
2119Testing 19CorporateTesting
2220Testing 20CorporateTesting
2321Testing 21CorporateTesting
2422Testing 22CorporateTesting
2523Testing 23CorporateTesting
2624Testing 24CorporateTesting
2725Testing 25CorporateTesting
2826Testing 26CorporateTesting
2927Testing 27CorporateTesting
3028Testing 28CorporateTesting
3129Testing 29Commercial LendingMonitoring
3230Testing 29CorporateMonitoring
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top