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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Alright, got you.

Could you provide me your table? Or some data to work with?
 
Upvote 0
I've got a small amount of data in a new sheet, how do I upload it on to the forum? I have downloaded the XL2BB but it does not seem to activate?
 
Upvote 0
Hi & welcome to MrExcel.
I have downloaded the XL2BB but it does not seem to activate?
Did you unzip the xlam & put it in the add-ins folder, which should be somewhere like C:\Users\username\AppData\Roaming\Microsoft\AddIns

Also do you have the new LET function?
 
Upvote 0
You need to select the range you want to post, before clicking the "Capture Range" button.
 
Upvote 0
Hi & welcome to MrExcel.

Did you unzip the xlam & put it in the add-ins folder, which should be somewhere like C:\Users\username\AppData\Roaming\Microsoft\AddIns

Also do you have the new LET function?
Hello, thanks for your help!

The add-on is loaded now, I'll just try again capturing the information.

Cheers
 
Upvote 0
Book1
ABCD
5Away ScoreHome ScoreMarginTotal
60000
70000
80000
90000
1020-22
1120-22
1220-22
1320-22
1420-22
1520-22
1620-22
1720-22
1820-22
1920-22
2021-13
2121-13
2221-13
2341-35
2441-35
254408
2674-311
2774-311
2874-311
2974-311
3074-311
3174-311
32104-614
33104-614
34104-614
35104-614
36104-614
37104-614
38134-917
39134-917
40134-917
41154-1119
42156-921
43156-921
44156-921
45156-921
46176-1123
47179-826
48179-826
49179-826
501712-529
511712-529
521712-529
531712-529
541712-529
551712-529
Sheet1
 
Upvote 0
Thanks for that, how about
Excel Formula:
=MAX(FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))))-MIN(FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))))

or if you have the LET function
Excel Formula:
=LET(Fltr,FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))),MAX(Fltr)-MIN(Fltr))
 
Upvote 0
Solution
Thanks for that, how about
Excel Formula:
=MAX(FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))))-MIN(FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))))

or if you have the LET function
Excel Formula:
=LET(Fltr,FILTER(A6:A60,B6:B60=MODE.SNGL(IF(A6:A60>0,B6:B60))),MAX(Fltr)-MIN(Fltr))
Both have done the trick!

Thanks very much - 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?

Much appreciated!

Have a great new year
 
Upvote 0

Forum statistics

Threads
1,215,302
Messages
6,124,148
Members
449,146
Latest member
el_gazar

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