Finding dates for streaks

miles00577

New Member
Joined
Aug 21, 2008
Messages
18
I've got a yearly history of game results and have just started incorporating winning/losing streaks. I've got a top 10 list of longest streaks, but I want to incorporate the dates of each streak. For example, on the data below, I want to be able to pull the date data from the first and last row of each streak.

COLUMNS
ASATAUAV
3W18-26-2002
4W228-28-2002
5L0
6W19-4-2002
7W29-7-2002
8W39-12-2002
9W449-14-2002
10L0

<tbody>
</tbody>

<colgroup><col span="3"><col></colgroup><tbody>
</tbody>
Basically, the desired end result I'm seeking is this:
9-4-2002 - 9-14-20024
8-26-2002 - 8-28-20022

<tbody>
</tbody>

I've already got the right column to find LARGE in the AU Column from the spreadsheet, but not quite sure how get the desired end result for the date data.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
A
B
C
D
E
F
G
H
I
1
ASATAUAVStartEndAU
2
2​
L
0​
9/4/2002​
9/14/2002​
4​
3
3​
W
1​
8/26/2002​
8/26/2002​
8/28/2002​
2​
4
4​
W
2​
2​
8/28/2002​
5
5​
L
0​
6
6​
W
1​
9/4/2002​
7
7​
W
2​
9/7/2002​
8
8​
W
3​
9/12/2002​
9
9​
W
4​
4​
9/14/2002​
10
10​
L
0​
Sheet: Sheet81

Formula in cell G2:

=INDEX($E$2:$E$9,LOOKUP(2,1/($E$2:INDEX($E$2:$E$9,MATCH(I2,$D$2:$D$9,0))=""),MATCH(ROW($E$2:INDEX($E$2:$E$9,MATCH(I2,$D$3:$D$9,0))),ROW($E$2:INDEX($E$2:$E$9,MATCH(I2,$D$2:$D$9,0)))))+1)

Formula in H2:
=INDEX($E$3:$E$9,MATCH(I2,$D$3:$D$9,0))

Formula in I2:
=LARGE($D$3:$D$10,ROWS($A$1:A1))
 
Upvote 0
The formula in H2 and I2 work fine. However, G2 pops up with an #N/A. I should add that the D2 runs the following formula down the column so that only the winning streak number appears:

=IF(C3=0,C2," ")

Also, if I get duplicate winning streaks, the end date (and eventually the start date once we get the formula correct) will repeat with the same dates from the first duplicate streak. I know I will be able to work around this by assigning a unique game ID number in a separate column.
 
Upvote 0
I GOT IT TO WORK! I took out the space on the =IF formula I added in the previous reply. Thanks so much. This saves time from trying to locate the dates in the spreadsheet and typing them out. I figured there was a way this could be done. Thanks for pointing me in the right direction.
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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