Win/Loss Streak Stationary

tgreene2856

New Member
Joined
Apr 10, 2013
Messages
30
I couldn't find what I was looking for so I decided to post. I have a spreadsheet set up with win in D Col and loss in E Col. What I want is based on when stats change in either D or E in F the win/loss streak changes. Example:

Wins: 3 Losses: 2 My Win/Loss Streak is +1

Now I win three games in a row.

Wins: 6 Losses: 2 My Win/Loss Streak is +4

My next game I lose.

Wins: 6 Losses: 3 My Win/Loss Streak is -1

How would I go about do that? is it possible?

Each team has a row and total wins go in D & E.

Tim
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I don't understand the logic here
Wins: 3 Losses: 2 My Win/Loss Streak is +1

Do you mean
Win Win Loss Loss Win = +1? since the last game in a win?
 
Upvote 0
No prob.
With Win in D and Loss in E, I marked the wins or losses with an X in the appropriate column
In F2, I put the following
=IF(AND(D2="X",D1="X"),F1+1,IF(AND(E2="X",E1="X"),F1-1,IF(D2="X",1,-1)))

Does that solve it?
 
Upvote 0
I believe so, but D2 would be a completely different team so why does D2 =X in the formula?
Example of my sheet:

Team: W: L:
Team 1 3 2
Team 2 2 3

When I update I change the teams win or loss so total wins and total losses are in two cols. I hope that isn't confusing. Thanks for the help so far.

Tim
 
Upvote 0
I'm trying to understand your layout.
You have a win column
You have a loss column.
In the first row "Superteam" wins
What precisely do you put in the cell under win if anything
What precisely do you put in the cell under loss if anything
 
Upvote 0
The table shows what I want my spread sheet to look like. Right now it does not have the win/loss streak.

Team Names:
Wins:
Losses
Win/Loss Streak
Capitals
4
2
3
Havoc
1
3
1

<tbody>
</tbody>

What I am trying to get is when I update the Capitals wins or losses their win streak will auto update. In that case if the update is to 5 wins then the win/loss streak will become 4. However it is a loss I want it to become -1. If that is possible. I am not sure I will be able to get any clearer then that. Thanks for your help so far.

Tim
 
Upvote 0
With the code below, C4 is Capitol Wins and D4 is Capitol Losses
You could add a win and lose button for the row

Here is the code
Sub weWon()
Range("C4").Value = Range("C4").Value + 1
If Range("E4").Value >= 0 Then
Range("E4").Value = Range("E4").Value + 1
Else
Range("E4").Value = 1
End If

End Sub
Sub weLost()
Range("D4").Value = Range("D4").Value + 1
If Range("E4").Value <= 0 Then
Range("E4").Value = Range("E4").Value - 1
Else
Range("E4").Value = -1
End If

End Sub

If you need this to be on a cell change event, I will throw in the towel, as that isn't my strength, but I do believe it can be done.
 
Upvote 0

Forum statistics

Threads
1,221,478
Messages
6,160,065
Members
451,615
Latest member
soroosh

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