Consecutive Points Scored

SubZero55

New Member
Joined
Dec 27, 2020
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need an Excel formula that determines the Maximum number of consecutive points scored by a particular team.

I have found threads that cover similar questions but none that can quite get the correct answer.

Any help would be greatly appreciated!

So here the most consecutive points scored by the Away team would be 11 (from 4-4 to 15-4), the most consecutive points scored by the home team would be 6 (from 6-17 to 12-17)

1609080604849.png
 
I assume for me to apply these to the whole data set, i'll just wrap an IF function around this to get the number from each individual game?
That depends on how you distinguish the individual games.
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
That depends on how you distinguish the individual games.
Could I possibly link a sheet with more data, and if possible be able to calculate the most consecutive points for the Road and Home team for each individual game?

Book1
ABCDE
5Game IDAway ScoreHome ScoreMarginTotal
600219000010000
700219000010000
800219000010000
900219000010000
10002190000120-22
11002190000120-22
12002190000120-22
13002190000120-22
14002190000120-22
15002190000120-22
16002190000120-22
17002190000120-22
18002190000120-22
19002190000120-22
20002190000121-13
21002190000121-13
22002190000121-13
23002190000141-35
24002190000141-35
2500219000014408
26002190000174-311
27002190000174-311
28002190000174-311
29002190000174-311
30002190000174-311
31002190000174-311
320021900001104-614
330021900001104-614
340021900001104-614
350021900001104-614
360021900001104-614
370021900001104-614
380021900001134-917
390021900001134-917
400021900001134-917
410021900001154-1119
420021900001156-921
430021900001156-921
440021900001156-921
450021900001156-921
460021900001176-1123
470021900001179-826
480021900001179-826
490021900001179-826
5000219000011712-529
5100219000011712-529
5200219000011712-529
5300219000011712-529
5400219000011712-529
5500219000011712-529
5600219000011712-529
5700219000011912-731
5800219000011914-533
5900219000011914-533
6000219000011914-533
6100219000011914-533
6200219000011916-335
6300219000020000
6400219000020000
65002190000220-22
66002190000220-22
67002190000220-22
68002190000250-55
69002190000250-55
70002190000250-55
71002190000250-55
72002190000250-55
73002190000250-55
74002190000250-55
75002190000252-37
76002190000272-59
77002190000272-59
78002190000272-59
79002190000272-59
80002190000272-59
81002190000292-711
82002190000292-711
83002190000292-711
84002190000292-711
85002190000292-711
860021900002102-812
870021900002112-913
880021900002112-913
890021900002112-913
900021900002112-913
910021900002112-913
920021900002112-913
930021900002112-913
940021900002112-913
950021900002132-1115
960021900002132-1115
970021900002132-1115
980021900002132-1115
990021900002132-1115
1000021900002132-1115
1010021900002134-917
1020021900002134-917
1030021900002136-719
1040021900002136-719
1050021900002136-719
1060021900002136-719
1070021900002136-719
1080021900002136-719
1090021900002137-620
1100021900002137-620
1110021900002138-521
1120021900002158-723
1130021900002158-723
1140021900002158-723
1150021900002158-723
1160021900002158-723
1170021900002158-723
1180021900002158-723
1190021900002158-723
1200021900002158-723
1210021900002168-824
1220021900002178-925
1230021900002178-925
1240021900002178-925
1250021900002178-925
1260021900002178-925
1270021900002178-925
1280021900002178-925
1290021900002178-925
1300021900002178-925
1310021900002178-925
1320021900002178-925
1330021900002178-925
134219000030000
135219000030000
136219000030000
137219000030000
138219000030000
139219000030000
140219000030000
141219000030000
142219000030000
143219000030000
144219000030000
1452190000320-22
1462190000320-22
1472190000320-22
1482190000340-44
1492190000340-44
1502190000340-44
1512190000342-26
1522190000342-26
1532190000342-26
1542190000342-26
1552190000342-26
156219000034519
1572190000365-111
1582190000365-111
1592190000365-111
1602190000365-111
1612190000365-111
1622190000367113
1632190000367113
1642190000367113
16521900003610416
16621900003610416
16721900003610416
16821900003610416
16921900003610416
17021900003610416
17121900003610416
17221900003610416
17321900003610416
17421900003610416
17521900003610416
17621900003710317
17721900003710317
17821900003810218
17921900003810218
18021900003813521
181219000031013323
182219000031016626
183219000031016626
184219000031016626
185219000031016626
186219000031216428
187219000031216428
188219000031216428
189219000031216428
190219000031216428
191219000031216428
192219000031216428
193219000031216428
194219000031216428
195219000031216428
19600219000040000
19700219000040000
19800219000040000
19900219000040000
20000219000040000
20100219000040000
20200219000040000
20300219000040000
20400219000040000
20500219000040000
20600219000040000
20700219000040000
20800219000040000
20900219000040000
21000219000040000
21100219000040000
21200219000040000
21300219000040000
21400219000040000
21500219000040000
21600219000040000
21700219000040000
21800219000040000
219002190000420-22
220002190000420-22
221002190000420-22
222002190000440-44
223002190000440-44
224002190000440-44
225002190000460-66
226002190000460-66
227002190000462-48
228002190000462-48
229002190000464-210
230002190000464-210
231002190000464-210
232002190000464-210
233002190000466012
234002190000496-315
235002190000496-315
236002190000496-315
237002190000496-315
238002190000496-315
239002190000496-315
240002190000496-315
241002190000496-315
2420021900004116-517
2430021900004116-517
2440021900004116-517
2450021900004116-517
2460021900004116-517
2470021900004116-517
2480021900004136-719
2490021900004136-719
2500021900004137-620
2510021900004137-620
2520021900004137-620
2530021900004137-620
2540021900004137-620
2550021900004137-620
2560021900004137-620
2570021900004139-422
2580021900004139-422
25900219000041311-224
26000219000041311-224
26100219000041311-224
26200219000041311-224
26300219000041311-224
26400219000041311-224
26500219000041311-224
26600219000041311-224
26700219000041311-224
26800219000041411-325
26900219000041411-325
27000219000041511-426
27100219000041513-228
27200219000041713-430
27300219000041713-430
27400219000041715-232
27500219000041915-434
27600219000041917-236
27700219000041917-236
27800219000041917-236
27900219000041917-236
28000219000041917-236
28100219000041917-236
28200219000042217-539
28300219000042219-341
28400219000042219-341
28500219000042219-341
28600219000042219-341
28700219000042419-543
28800219000042419-543
28900219000042419-543
29000219000042419-543
29100219000042519-644
29200219000042619-745
29300219000042619-745
29400219000042619-745
29500219000042619-745
29600219000042619-745
29700219000042719-846
29800219000042722-549
29900219000042722-549
30000219000042724-351
30100219000042724-351
30200219000042724-351
30300219000042724-351
30400219000042724-351
30500219000042724-351
30600219000042724-351
30700219000042724-351
30800219000042724-351
30900219000042724-351
31000219000042724-351
31100219000042726-153
31200219000042926-355
31300219000042926-355
31400219000042926-355
31500219000042926-355
31600219000042926-355
31700219000042926-355
31800219000042928-157
31900219000043228-460
32000219000043231-163
32100219000043231-163
32200219000043231-163
32300219000043231-163
32400219000043231-163
32500219000043231-163
32600219000043231-163
32700219000043231-163
32800219000043231-163
32900219000043231-163
33000219000043231-163
33100219000043231-163
33200219000043331-264
33300219000043331-264
33400219000043331-264
33500219000043431-365
33600219000043431-365
33700219000043431-365
33800219000043431-365
33900219000043431-365
34000219000043431-365
34100219000043431-365
34200219000043431-365
34300219000043431-365
34400219000043433-167
34500219000043433-167
34600219000043433-167
34700219000043433-167
34800219000043433-167
34900219000043433-167
35000219000043433-167
35100219000043433-167
35200219000043633-369
35300219000043633-369
35400219000043633-369
35500219000043633-369
35600219000043633-369
35700219000043633-369
35800219000043633-369
35900219000043635-171
36000219000043835-373
36100219000043837-175
36200219000043837-175
36300219000043837-175
36400219000044037-377
36500219000044037-377
36600219000044037-377
36700219000044237-579
36800219000044240-282
36900219000044440-484
37000219000044440-484
37100219000044440-484
Sheet1
Cell Formulas
RangeFormula
D6:D371D6=C6-B6
E6:E371E6=B6+C6
A6:A62A6="0021900001"
A63:A133A63="0021900002"
A196:A371A196="0021900004"


Cheers!
 
Upvote 0
How about
Cell Formulas
RangeFormula
D6:D33D6=C6-B6
E6:E33E6=B6+C6
H6:H9H6=UNIQUE(FILTER(A6:A600,A6:A600<>""))
I6:I9I6=LET(Fltr,FILTER($B$6:$C$600,($A$6:$A$600=H6)*($B$6:$B$600>0)),Most,(FILTER(INDEX(Fltr,,1),INDEX(Fltr,,2)=MODE.SNGL(INDEX(Fltr,,2)))),MAX(Most)-MIN(Most))
J6:J9J6=LET(Fltr,FILTER($B$6:$C$600,($A$6:$A$600=H6)*($C$6:$C$600>0)),Most,(FILTER(INDEX(Fltr,,2),INDEX(Fltr,,1)=MODE.SNGL(INDEX(Fltr,,1)))),MAX(Most)-MIN(Most))
A6:A33A6="0021900001"
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,549
Messages
6,120,149
Members
448,948
Latest member
spamiki

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