Hello all
How can i calculate the longest streak and the current streak of specific soccer results (ex: 1-1) if goals are placed in two columns.
Ex 1:
A B
2 0
1 1
1 1
1 1
1 1
1 1
2 3
2 1
1 1
1 1
results:
Longest 1-1 streak: 5
Current 1-1 streak: 2
Ex 2:
A B
2 0
1 1
1 1
1 1
1 1
1 1
2 3
2 1
1 1
1 1
2 2
results:
Longest 1-1 streak: 5
Current 1-1 streak: 0 this is because the actual result (2-2) is <>1-1, so the last streak of 1-1 is ignored.
Thanks
Bookmarks