Two-part Question about Z (summa) and calculations

kmprice710

Board Regular
Joined
Jan 8, 2014
Messages
87
Office Version
  1. 2019
Platform
  1. Windows
I've been asked to updated my alma mater's girls' basketball team files and I found some problems.

Is there a way to do the following two things without using VBA?

1. All of the games' boxscores are listed in one giant file, one under the other. They all have a game ID code.
The problem is that the Totals rows don't have MIN totaled up. This should be the sum of the minutes for each team's players. For example cell E17 should say 200.
Is there a formula that I can write that will fill in just that column in the Totals row for each game?

2. Then I want to fill in the Team row by taking the Totals row and finding the Difference between it and the sum of each team's individual players for every category. For example, cell M16 should be 1 because the Totals row for Oreb is 17 but the sum of the players comes out to be only 16. When the sum is larger than Team, then the difference should be negative.
Is there a formula that would work for that as well?

ABCDEFGHIJKLMNOPQRST
1seasongameschoolplayerMINfgmfgatgmtgaftmftaptsorebdrebrebasttostlblkpf
22002-030128200306370177CentralYoung23370200614520201
32002-030128200306370177CentralDavis34817000016471101023
42002-030128200306370177CentralAnderson25390100643712104
52002-030128200306370177CentralRussell242110000402202012
62002-030128200306370177CentralSmith26170433510154101
72002-030128200306370177CentralFaulkner11121100311201000
82002-030128200306370177CentralRagland10030000010100002
92002-030128200306370177CentralWilson3131300311211001
102002-030128200306370177CentralHayes3020100000001000
112002-030128200306370177CentralWilson3111100301100000
122002-030128200306370177CentralEason7120000200001002
132002-030128200306370177CentralArmstead12030100013402001
142002-030128200306370177CentralBenson3010000010100000
152002-030128200306370177CentralBrown16160011313411002
162002-030128200306370177CentralTEAM
172002-030128200306370177CentralTotals2274314445117264310164319
182002-030128200306370177LincolnJacobs22040200015630010
192002-030128200306370177LincolnHart21910001319371030110
202002-030128200306370177LincolnRollison204824221203312102
212002-030128200306370177LincolnSchroeder273524221004462111
222002-030128200306370177LincolnHarms2661158001714510000
232002-030128200306370177LincolnCameron14120000212302101
242002-030128200306370177LincolnJames27030156513443102
252002-030128200306370177LincolnMays5020100000010000
262002-030128200306370177LincolnHadley12240026602202020
272002-030128200306370177LincolnBroomfield11131212400012100
282002-030128200306370177LincolnWilkins4010100000000000
292002-030128200306370177LincolnJenkins11240034712300001
302002-030128200306370177LincolnTEAM
312002-030128200306370177LincolnTotals28571023162582835432013657
322008-091118200808220383CentralYoung3071200581923520005
332008-091118200808220383CentralDavis3051128341503300103
342008-091118200808220383CentralAnderson2851126111312335203
352008-091118200808220383CentralRussell30120000201110105
362008-091118200808220383CentralSmith12020022211201001
372008-091118200808220383CentralFaulkner235746341702201103
382008-091118200808220383CentralRagland13120156701131001
392008-091118200808220383CentralWilson19161322502201202
402008-091118200808220383CentralHayes9000000011200000
412008-091118200808220383CentralWilson6010100000001000
422008-091118200808220383CentralTEAM101
432008-091118200808220383CentralTotals2554925212780616229107023
442008-091118200808220383GrantTolkien3713174511134101142301
452008-091118200808220383GrantSolomon223600441001100102
462008-091118200808220383GrantBrent223500228731010000
472008-091118200808220383GrantJordan32370212714541113
482008-091118200808220383GrantOlsen33161322507704004
492008-091118200808220383GrantBaker18330022814501111
502008-091118200808220383GrantTaylor19260222612331001
512008-091118200808220383GrantBurnley11141400302211002
522008-091118200808220383GrantCurtis4110000200001002
532008-091118200808220383GrantScobey2000000000001000
542008-091118200808220383GrantTEAM000
552008-091118200808220383GrantTotals305561624279010243413126216
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Is there a formula that I can write that will fill in just that column in the Totals row for each game?
No, you would need to add the formula to E17,E31 etc individually.
 
Upvote 0
Oh gosh there are 10,000 rows here, like 20 games a year for 20 years. I can probably filter by Totals to get each Totals row and paste the formula.

I can't just use Z (summa) though because the number of rows for each game changes based on the number of players who appeared.

Is there a way to have that be variable?
 
Upvote 0
What exactly do you mean by Z (summa)?
 
Upvote 0
Filter the data for Totals. Select the visible cells in the MIN column using Alt+; and then remove the filter. Press Alt+= and that should enter the required SUM formula in each cell - though it will include the TEAM row. Not sure if that's an issue.
 
Upvote 0
Filter the data for Totals. Select the visible cells in the MIN column using Alt+; and then remove the filter. Press Alt+= and that should enter the required SUM formula in each cell - though it will include the TEAM row. Not sure if that's an issue.

ok I filtered by Totals but it returned 0 for every subtotal
 
Upvote 0
If you did exactly what I said, you would have SUM formulas not SUBTOTAL? If they return 0 then it would suggest the numbers are actually text.
 
Upvote 0
Nope they're numbers. Maybe I did not understand your alt command?
 
Upvote 0
Ok, so the steps are:
1. Filter for Totals
2. Select the (blank) Min cells
3. Press Alt and semicolon together to select only the visible cells.
4. Remove the filter (without changing the selected cells)
5. Press Alt and the = key, which will enter the required SUM formula in each of the selected cells.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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