Counting same value across a spreadsheet

Albertie

New Member
Joined
Jul 17, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,
Im trying to count performance stats for a team (points scored, player of match etc.) across a spreadsheet that contains the teams picked for each game of the season. see picture attached for basic example. Is there anyway to sum an individual players performance (say Mary & points scored) across all the games, bearing in mind that they may not play in same positions every game (so wont be in same position in column for each game.)

Cheers.
A
 

Attachments

  • Screenshot 2024-07-17 122013.png
    Screenshot 2024-07-17 122013.png
    9.6 KB · Views: 12

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Assuming you are adding new games to the columns to the right... how about:

Book1
ABCDEFGHIJKLMNO
1Youghal (A) FriendlyYoughal (H) O'Neill CupAnother (A) Game
2Team321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjury
3John352ConcussionMary15Mary1
4JoeSean22RibsSean35
5Mary2Joe310John22
6Sean15JohnJoe10
7
8
9Scores of all games
10321Try scoredPoints kicked
11John554
12Mary450
13Joe3200
14Sean6102
Sheet1
Cell Formulas
RangeFormula
B11:D14B11=LET(d, FILTER($A$3:$ALL$6,$A$2:$ALL$2<>""), sd, DROP(WRAPROWS(TOROW(d), 5),,-1), fd, DROP(FILTER(sd, CHOOSECOLS(sd,1)=A11),,1), res, BYCOL(fd, LAMBDA(x, SUM(x))), res )
Dynamic array formulas.
 
Upvote 1
Solution
Assuming you are adding new games to the columns to the right... how about:

Book1
ABCDEFGHIJKLMNO
1Youghal (A) FriendlyYoughal (H) O'Neill CupAnother (A) Game
2Team321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjury
3John352ConcussionMary15Mary1
4JoeSean22RibsSean35
5Mary2Joe310John22
6Sean15JohnJoe10
7
8
9Scores of all games
10321Try scoredPoints kicked
11John554
12Mary450
13Joe3200
14Sean6102
Sheet1
Cell Formulas
RangeFormula
B11:D14B11=LET(d, FILTER($A$3:$ALL$6,$A$2:$ALL$2<>""), sd, DROP(WRAPROWS(TOROW(d), 5),,-1), fd, DROP(FILTER(sd, CHOOSECOLS(sd,1)=A11),,1), res, BYCOL(fd, LAMBDA(x, SUM(x))), res )
Dynamic array formulas.
Thanks for that, but I'm getting a #CALC! error when I copied your formula - =LET(d, FILTER($A$3:$ALL$6,$A$2:$ALL$2<>""),sd, DROP(WRAPROWS(TOROW(d), 5),,-1),fd, DROP(FILTER(sd, CHOOSECOLS(sd,1)=A11),,1),res, BYCOL(fd, LAMBDA(x, SUM(x))),res) into my spreadsheet
 
Upvote 0
Thanks for that, but I'm getting a #CALC! error when I copied your formula - =LET(d, FILTER($A$3:$ALL$6,$A$2:$ALL$2<>""),sd, DROP(WRAPROWS(TOROW(d), 5),,-1),fd, DROP(FILTER(sd, CHOOSECOLS(sd,1)=A11),,1),res, BYCOL(fd, LAMBDA(x, SUM(x))),res) into my spreadsheet
Assuming you are adding new games to the columns to the right... how about:

Book1
ABCDEFGHIJKLMNO
1Youghal (A) FriendlyYoughal (H) O'Neill CupAnother (A) Game
2Team321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjuryTeam321Try scoredPoints kickedInjury
3John352ConcussionMary15Mary1
4JoeSean22RibsSean35
5Mary2Joe310John22
6Sean15JohnJoe10
7
8
9Scores of all games
10321Try scoredPoints kicked
11John554
12Mary450
13Joe3200
14Sean6102
Sheet1
Cell Formulas
RangeFormula
B11:D14B11=LET(d, FILTER($A$3:$ALL$6,$A$2:$ALL$2<>""), sd, DROP(WRAPROWS(TOROW(d), 5),,-1), fd, DROP(FILTER(sd, CHOOSECOLS(sd,1)=A11),,1), res, BYCOL(fd, LAMBDA(x, SUM(x))), res )
Dynamic array formulas.
Apologies, felixstraube, I moved a row number and got it working. Thank you very much. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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