counting multiple occurences in a row

Flashboy

New Member
Joined
May 8, 2014
Messages
19
hey guys

I am trying to count multiple occurences in a table. what I'm trying to do is only count when a team has 2 or more the same, so in this instance as copper and iron are top i want a formula to return Yes as i can see at a glance the team have hit top in more than one area.

See example below

Thanks

[TABLE="width: 661"]
<colgroup><col style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;" width="67"> <col style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85"> <col style="width: 90pt; mso-width-source: userset; mso-width-alt: 4388;" width="120"> <col style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85"> <col style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98"> <col style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85"> <col style="width: 71pt; mso-width-source: userset; mso-width-alt: 3474;" width="95"> <col style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;" width="85"> <col style="width: 68pt; mso-width-source: userset; mso-width-alt: 3328;" width="91"> <tbody>[TR]
[TD="class: xl66, width: 69, bgcolor: #8064A2"]main team[/TD]
[TD="class: xl66, width: 67, bgcolor: #8064A2"]Team[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Copper[/TD]
[TD="class: xl66, width: 120, bgcolor: #8064A2"]Copper Tasks[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Iron[/TD]
[TD="class: xl66, width: 98, bgcolor: #8064A2"]Iron Tasks[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Steel[/TD]
[TD="class: xl66, width: 95, bgcolor: #8064A2"]Steel Tasks[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Alloy[/TD]
[TD="class: xl66, width: 91, bgcolor: #8064A2"]Alloy Tasks[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]ABC11[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]ABC111[/TD]
[TD="class: xl67"]Top [/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]11[/TD]
[TD="class: xl67"]Top[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]28[/TD]
[TD="class: xl67"]Very Bottom[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]8[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]0[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Not sure, but do you mean..


Excel 2012
ABCDEFGHIJ
1main teamTeamCopperCopper TasksIronIron TasksSteelSteel TasksAlloyAlloy Tasks
2ABC11YesTop11Top28Very Bottom800
Sheet3
Cell Formulas
RangeFormula
B2=IF(COUNTIF(C2:I2,"Top")>=2,"Yes","")
 
Upvote 0
I was going to put it in a new column but the formula works a treat!

Thanks

Flash


hey guys

I am trying to count multiple occurences in a table. what I'm trying to do is only count when a team has 2 or more the same, so in this instance as copper and iron are top i want a formula to return Yes as i can see at a glance the team have hit top in more than one area.

See example below

Thanks

[TABLE="width: 661"]
<tbody>[TR]
[TD="class: xl66, width: 69, bgcolor: #8064A2"]main team
[/TD]
[TD="class: xl66, width: 67, bgcolor: #8064A2"]Team
[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Copper
[/TD]
[TD="class: xl66, width: 120, bgcolor: #8064A2"]Copper Tasks
[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Iron
[/TD]
[TD="class: xl66, width: 98, bgcolor: #8064A2"]Iron Tasks
[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Steel
[/TD]
[TD="class: xl66, width: 95, bgcolor: #8064A2"]Steel Tasks
[/TD]
[TD="class: xl66, width: 85, bgcolor: #8064A2"]Alloy
[/TD]
[TD="class: xl66, width: 91, bgcolor: #8064A2"]Alloy Tasks
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #D9D9D9"]ABC11
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]ABC111
[/TD]
[TD="class: xl67"]Top
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]11
[/TD]
[TD="class: xl67"]Top
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]28
[/TD]
[TD="class: xl67"]Very Bottom
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]8
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]0
[/TD]
[TD="class: xl67, bgcolor: #D9D9D9"]0
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
So if i wanted to use a formula like this to count if 2 criteria was met such as top and very bottom how would i do that?

Sorry about this but its all helping me learn :-)
 
Upvote 0

Forum statistics

Threads
1,225,482
Messages
6,185,259
Members
453,283
Latest member
Shortm88

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