Count If with Breaks

cheesiepoof05

Board Regular
Joined
Dec 30, 2010
Messages
82
I am trying to come up with a formula for Column S (count of Broad Names with 1 or more 1's in the unique name count, split by field ID" which will tell me how many Broad Names are being used per Field ID. I added in the correct answer already just manually but I need to figure out a formula to replicate that.

OPQRS
Field
ID
BROAD NAMEUNIQUE NAMEUnique Name Being Used (1=Yes, 0=No)Count of Broad Names With 1 or more 1's in the Unique Name Count,
Split by Field ID
400DOGSGerman Shepherd13
400DOGSPoodle03
400CATSPersian13
400CATSSiamese13
400CATSAbyssinian03
400REPTILESCrocodile03
400REPTILESChameleon03
400AMPHIBIANSFrog13
573BLUESCarolina12
573BLUESCobalt12
573BLUESTurquoise02
573REDSMagenta02
573REDSCandy Apple02
573REDSAuburn02
573REDSWine02
573GREENSAvocado12
573GREENSMint02
573GREENSChartreuse12
<colgroup><col width="39" style="width: 29pt; mso-width-source: userset; mso-width-alt: 1248;"> <col width="103" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3296;"> <col width="149" style="width: 112pt; mso-width-source: userset; mso-width-alt: 4768;"> <col width="115" style="width: 86pt; mso-width-source: userset; mso-width-alt: 3680;"> <col width="174" style="width: 131pt; mso-width-source: userset; mso-width-alt: 5568;"> <tbody> </tbody>

Thank you!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try:

OPQRST
1Field IDBROAD NAMEUNIQUE NAMEUnique Name Being Used (1=Yes, 0=No)Count of Broad Names With 1 or more 1's in the Unique Name Count, Split by Field ID
2400DOGSGerman Shepherd13
3400DOGSPoodle03
4400CATSPersian13
5400CATSSiamese13
6400CATSAbyssinian03
7400REPTILESCrocodile03
8400REPTILESChameleon03
9400AMPHIBIANSFrog13
10573BLUESCarolina12
11573BLUESCobalt12
12573BLUESTurquoise02
13573REDSMagenta02
14573REDSCandy Apple02
15573REDSAuburn02
16573REDSWine02
17573GREENSAvocado12
18573GREENSMint02
19573GREENSChartreuse12

<tbody>
</tbody>
Roadmap

Array Formulas
CellFormula
S2{=SUM(SIGN(FREQUENCY(IF($O$2:$O$19=O2,IF($R$2:$R$19=1,MATCH($P$2:$P$19,$P$2:$P$19,0))),ROW($O$2:$O$19)-
ROW($O$2)+1
)
)
)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,217,359
Messages
6,136,097
Members
449,991
Latest member
IslandofBDA

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