Excel help with formulaes to produce appearance records for weekly football logs

owen3001

New Member
Joined
Jan 7, 2019
Messages
5
Hey i log information for my weekly work football and am trying to automate more of my collection of data. I have a set of data that looks like this:

[TABLE="width: 1075"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Game No.[/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]
[TD]Win Scorer[/TD]
[TD]Draw1 Scorer[/TD]
[TD]Draw2 Scorer[/TD]
[TD]Loss Scorer[/TD]
[/TR]
[TR]
[TD]9 Jan[/TD]
[TD]1[/TD]
[TD]James[/TD]
[TD][/TD]
[TD][/TD]
[TD]Todd[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Pete[/TD]
[TD][/TD]
[TD][/TD]
[TD]Jay[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Colin[/TD]
[TD][/TD]
[TD][/TD]
[TD]Rich[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1[/TD]
[TD]Elliot[/TD]
[TD][/TD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D]
[TD]3[/TD]
[TD]Jay[/TD]
[TD][/TD]
[TD][/TD]
[TD]Baz[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I have a formulae that will tell me how often 2 players play together, (will show example below) but i dont know how to adapt it to be able to say how many times 2 people attended a session.

I would like a similar table as below

Formulae used:
=IF($AP3=AR$2," ",SUM(IF($U$3:$X$233=$AP3,COUNTIFS($T$3:$T$233,$T$3:$T$233,OFFSET($U$3:$X$233,,COLUMN($U$3:$X$233)-MIN(COLUMN($U$3:$X$233)),,1),AR$2))))

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Games on same Team[/TD]
[TD]Jay[/TD]
[TD]Nick[/TD]
[TD]Pete[/TD]
[TD]Colin[/TD]
[/TR]
[TR]
[TD]Jay[/TD]
[TD]-[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]3[/TD]
[TD]-[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Pete[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]-[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Colin[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD="colspan: 3"][/TD]
[TD][/TD]
[TD="colspan: 2"][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Below is the table id like to be auto generated, only used subset of players so not evenyone plays the same number of games. I want this so i can calculate the percentage of time people are on same team.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Games Appear together[/TD]
[TD]Jay[/TD]
[TD]Nick[/TD]
[TD]Pete[/TD]
[TD]Colin[/TD]
[/TR]
[TR]
[TD]Jay[/TD]
[TD]-[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]3[/TD]
[TD]-[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Pete[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]-[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Colin[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]


Thanks for any assistance.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

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