Calculate Winning Streak in excel

mailbox

New Member
Joined
Jun 30, 2012
Messages
7
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.


Any help is greatly appreciated. I uploaded my spreadsheet to Google docs here.
 

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
 
Upvote 0
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)
 
Upvote 0
Is this what you want?

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

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>


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

<thead>
</thead><tbody>
</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.
 
Upvote 0
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))
 
Upvote 0
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

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>


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

<thead>
</thead><tbody>
</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.
 
Upvote 0

Forum statistics

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