# Calculate Winning Streak in excel

#### mailbox

##### New Member
Hello,

I am working in Excel 2010. I am trying to write a formula to calculate a team's current winning/losing streak. I have wins and losses each in their own column, represented by a 1 or a 0. I would like to represent the current streak in a single column where (+) values represent a winning streak and (-) values represent a losing streak.

I have tried multiple combinations of formulas, with varying success. My current formula is: =IF(AS4="1",AP4+1,AP4-1). This works for a continuing winning or losing streak, but the issue arises when a team breaks a streak. For example if they win then lose, or vice versa.

### Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
One additional note: I am using random numbers to simulate the results of the first 2 weeks. This is the reason for the #N/A results. I am not worried about these, I am only concerned about the streak formula at this moment

Is this what you want?
<br />
Book1
APAQARAS
2StreakWin/Loss
300
400
511
621
731
841
900
1011
1100
1211
1300
1400
1511
1621
1731
Sheet1
Cell Formulas
RangeFormula
AP3=IF(AS3=1,AP2+1,0)

Is this what you want?

APAQARAS
2StreakWin/Loss
300
400
511
621
731
841
900
1011
1100
1211
1300
1400
1511
1621
1731

</tbody>

Worksheet Formulas
CellFormula
AP3=IF(AS3=1,AP2+1,0)

</tbody>

<tbody>
</tbody>

Not exactly. I would like losing streaks to be represented as well. So instead of a 0 for a losing streak I am trying to have it display -1, -2 etc.

Closer?

<br />
Book1
APAQARAS
2StreakWin/Loss
3-10
4-20
5-30
611
721
831
9-10
1011
11-10
1211
13-10
14-20
1511
1621
1731
Sheet1
Cell Formulas
RangeFormula
AP3=IF(AS3>0,IF(AS2>0,AP2+1,1),IF(AS2=0,AP2-1,-1))

Closer?

APAQARAS
2StreakWin/Loss
3-10
4-20
5-30
611
721
831
9-10
1011
11-10
1211
13-10
14-20
1511
1621
1731

</tbody>

Worksheet Formulas
CellFormula
AP3=IF(AS3>0,IF(AS2>0,AP2+1,1),IF(AS2=0,AP2-1,-1))

</tbody>

<tbody>
</tbody>

it works going down the column, but the way i have my data set up each team has its own row, I would like the streak for each team, going across the row, for each week. The formula works for each week, but not for an individual team. If that makes any sense.

I figured it out, thank you for the base formula!

I figured it out, thank you for the base formula!

How did you do that?

I know this post is 6 years old. Can you answer how you did that. Please and thank you.

Replies
3
Views
265
Replies
8
Views
920
Replies
6
Views
1K
Replies
6
Views
295
Replies
16
Views
230

1,211,986
Messages
6,105,223
Members
447,957
Latest member
Basildon

### 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.

### Which adblocker are you using?

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

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