Need stupid help again

Payne

New Member
Joined
May 15, 2004
Messages
31
Hey folks. I am just wondering if I can do something.

Yes, I come up with dumb things, so please bear with me.

Okay, a bit of background for the one helping me.

I run a baseball team/league, and I have been helped by you folks with ratios, and random seedings. Now, I am looking for streaks.

If it is possible, I would like to make a cell show the streak of a certain other cell. I will show example.


A B C D E F G
1 Name Wins Losses Draws Streak
2 Dan 3 0 0 3 wins
3 John 2 1 0 1 loss
3 Paul 1 2 0 2 losses
4 Jim 0 2 1 1 Draw

I hope you get the point. I would like, say, cell E2 to show the streak of Wins/Losses/Draws.

Is there a way of doing this?

In cell E2, show the last input in either cell B2, C2 or D2.

THanks for the help, even if I can't do it.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Jacob,

Could you shrink the cases by using "Case Win" and "Case Else" under each of the 3 scenarios?
 
Upvote 0
tactps said:
Jacob,

Could you shrink the cases by using "Case Win" and "Case Else" under each of the 3 scenarios?

Yes, I wrote it out completely for illustration purposes.
 
Upvote 0
Payne said:
TC-The new one is messing my sheet up totally

Set up an example sheet like I have pasted here. Then put the code in the sheet code section. Then change the win loss draw values and the streak will update.
 
Upvote 0
The TC one is doing good, just putting it in a line down.

And, I don't understand what you asked me to do, DRJ.

Now I am frusterated at myself for feeling so stupid
 
Upvote 0
ECW.xls
ABCDEF
1NameWinsLossesDraws
2Dave1412Wins
3AdamPearce3901Draws
4Stan0301Losses
5AceSpalding9502Losses
6Reggie690
7Michael780
Win Loss


Okay?
 
Upvote 0
It shouldn't (works fine for me).

Paste this in over the top and try again:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row > 1 And Target.Row < 6 And Target.Column < 5 And Target.Column > 1 Then
If ActiveCell.Offset(1 - ActiveCell.Row, 0).Text = ActiveCell.Offset(0, 6 - ActiveCell.Column).Text Then
ActiveCell.Offset(0, 5 - ActiveCell.Column).Formula = ActiveCell.Offset(0, 5 - ActiveCell.Column).Value + 1
Else
ActiveCell.Offset(0, 5 - ActiveCell.Column).Formula = 1
ActiveCell.Offset(0, 6 - ActiveCell.Column).Formula = ActiveCell.Offset(1 - ActiveCell.Row, 0).Text
End If
End If
End Sub
 
Upvote 0
Same thing. I input a number in B2, it shows up in E3. It is perfect, except I want it in E2.

Also, it works for the first 6 rows, what do I change to get, say at least 75 rows?
 
Upvote 0

Forum statistics

Threads
1,224,163
Messages
6,176,812
Members
452,744
Latest member
Alleo

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