Counting and Matching Multiple Values

SarahShep

New Member
Joined
Jan 15, 2004
Messages
4
I wonder if anyone can help me..................

We have 3 people performing 3 different activities and I need to flag up the tenth time each activity has taken place per person.

I have tried to use the sumproduct and countif formulas but they don't seem to work, I can get them to count the total amount of activities per person but I need to break it up per person, per activity.

For example..... I need the formula to flag up every 3rd time Katherine is Swimming or Running or Walking.

Column A Column B

Katherine Swimming
Laura Walking
Sarah Walking
Laura Walking
Laura Walking
Emma Running
Katherine Swimming
Sarah Running
Sarah Running
Laura Swimming
Katherine Running
Katherine Swimming
Katherine Running


Please help us sort this out as its driving crazy!!!!

Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try:

=(MOD(SUMPRODUCT(($A$1:A1=$F$1)*($B$1:B1=$F$2)),$F$3)=0)*(A1=$F$1)*(B1=$F$2)

In C1 and drag down.
Book1
ABCDEFG
1KatherineSwimming0NameLaura
2LauraWalking0ActivityWalking
3SarahWalking0Times3
4LauraWalking0
5LauraWalking1
6EmmaRunning0
7KatherineSwimming0
8SarahRunning0
9SarahRunning0
10LauraSwimming0
11KatherineRunning0
12KatherineSwimming0
13KatherineRunning0
Sheet1
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,968
Messages
5,856,579
Members
431,820
Latest member
martel_9

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
Top