[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Game[/TD]
[TD]Win[/TD]
[TD]Draw1[/TD]
[TD]Draw2[/TD]
[TD]Loss[/TD]
[TD]Win Goals[/TD]
[TD]Draw1 Goals[/TD]
[TD]Draw2 Goals[/TD]
[TD]Loss Goals[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Calum[/TD]
[TD][/TD]
[TD][/TD]
[TD]Steve[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Owen[/TD]
[TD][/TD]
[TD][/TD]
[TD]James[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jim[/TD]
[TD][/TD]
[TD][/TD]
[TD]Victoria[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Peter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Calum[/TD]
[TD]Dan[/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]James[/TD]
[TD]Steve[/TD]
[TD][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tom P[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is for teams put together in a given game.
I have a table that looks like above where it goes down 100s of rows, i have fixed groups of 7 rows. I want a way to count the number of times 2 names are listed on the same team together in a group. Ive been trying using something like this:
=SUM(IF(COUNTIF($R$10:$R$16,$AC48)+COUNTIF($R$10:$R$16,AD$2)=2,1,0),IF(COUNTIF($Q$10:$Q$16,$AC48)+COUNTIF($Q$10:$Q$16,AD$2)=2,1),IF(COUNTIF($S$10:$S$16,$AC48)+COUNTIF($S$10:$S$16,AD$2)=2,1,0),IF(COUNTIF($P$10:$P$16,$AC48)+COUNTIF($P$10:$P$16,AD$2)=2,1,0),IF(COUNTIF($R$3:$R$9,$AC48)+COUNTIF($R$3:$R$9,AD$2)=2,1,0),IF(COUNTIF($Q$3:$Q$9,$AC48)+COUNTIF($Q$3:$Q$9,AD$2)=2,1),IF(COUNTIF($S$3:$S$9,$AC48)+COUNTIF($S$3:$S$9,AD$2)=2,1,0),IF(COUNTIF($P$3:$P$9,$AC48)+COUNTIF($P$3:$P$9,AD$2)=2,1,0))
This works for the first 2 rows, id like to be able to have an output table showing the number of times people were together that looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Calum[/TD]
[TD]Owen[/TD]
[TD]Jim[/TD]
[TD]Dave[/TD]
[/TR]
[TR]
[TD]Calum[/TD]
[TD]-[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Owen[/TD]
[TD]2[/TD]
[TD]-[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]-[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
Ive been struggling to make something simple. Looking to use a loop that can apply in a series of equal sized arrays
Thanks in advance
Owen3001
<tbody>[TR]
[TD]Game[/TD]
[TD]Win[/TD]
[TD]Draw1[/TD]
[TD]Draw2[/TD]
[TD]Loss[/TD]
[TD]Win Goals[/TD]
[TD]Draw1 Goals[/TD]
[TD]Draw2 Goals[/TD]
[TD]Loss Goals[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Calum[/TD]
[TD][/TD]
[TD][/TD]
[TD]Steve[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Owen[/TD]
[TD][/TD]
[TD][/TD]
[TD]James[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Jim[/TD]
[TD][/TD]
[TD][/TD]
[TD]Victoria[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Peter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]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D]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Phil[/TD]
[TD][/TD]
[TD][/TD]
[TD]Dave[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Steve[/TD]
[TD][/TD]
[TD][/TD]
[TD]Tom P[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
This is for teams put together in a given game.
I have a table that looks like above where it goes down 100s of rows, i have fixed groups of 7 rows. I want a way to count the number of times 2 names are listed on the same team together in a group. Ive been trying using something like this:
=SUM(IF(COUNTIF($R$10:$R$16,$AC48)+COUNTIF($R$10:$R$16,AD$2)=2,1,0),IF(COUNTIF($Q$10:$Q$16,$AC48)+COUNTIF($Q$10:$Q$16,AD$2)=2,1),IF(COUNTIF($S$10:$S$16,$AC48)+COUNTIF($S$10:$S$16,AD$2)=2,1,0),IF(COUNTIF($P$10:$P$16,$AC48)+COUNTIF($P$10:$P$16,AD$2)=2,1,0),IF(COUNTIF($R$3:$R$9,$AC48)+COUNTIF($R$3:$R$9,AD$2)=2,1,0),IF(COUNTIF($Q$3:$Q$9,$AC48)+COUNTIF($Q$3:$Q$9,AD$2)=2,1),IF(COUNTIF($S$3:$S$9,$AC48)+COUNTIF($S$3:$S$9,AD$2)=2,1,0),IF(COUNTIF($P$3:$P$9,$AC48)+COUNTIF($P$3:$P$9,AD$2)=2,1,0))
This works for the first 2 rows, id like to be able to have an output table showing the number of times people were together that looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Calum[/TD]
[TD]Owen[/TD]
[TD]Jim[/TD]
[TD]Dave[/TD]
[/TR]
[TR]
[TD]Calum[/TD]
[TD]-[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Owen[/TD]
[TD]2[/TD]
[TD]-[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]-[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Dave[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
Ive been struggling to make something simple. Looking to use a loop that can apply in a series of equal sized arrays
Thanks in advance
Owen3001