Streak W or L

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,168
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Is there an easier way to do this, if anyone has some ideas, I would like to do this with out helper columns. I would not mind using VBA if needed. I am trying to get the streak in column D. Thanks in advance.


Streak Plus Minus.xlsm
ABCD
1W/LWinLossStreak
2
3L11-
4W20++
5L01-
6W10+
7W20++
8L01-
9L02--
10L03---
11W10+
12W20++
13L01-
14L02--
15L03---
16L04----
17L05-----
18W10+
19L01-
20W10+
Sheet1
Cell Formulas
RangeFormula
B3B3=--(B2+OR(AND(A3<>"W",A2<>"W"),A3<>"W"))*(A3<>"W")
C3:C20C3=--(C2+OR(AND(A3<>"W",A2<>"W"),A3<>"W"))*(A3<>"W")
D3:D20D3=IF(A3="W",REPT("+",--(B2+OR(AND(A3<>"L",A2<>"L"),A3<>"L"))*(A3<>"L")),REPT("-",--(C2+OR(AND(A3<>"W",A2<>"W"),A3<>"W"))*(A3<>"W")))
B4:B20B4=--(B3+OR(AND(A4<>"L",A3<>"L"),A4<>"L"))*(A4<>"L")
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi STPHEN_IV,

Does this work for you?

STEPHEN_IV2.xlsx
ABCD
1W/LWinLossStreak
2
3L11-
4W20++
5L01-
6W10+
7W20++
8L01-
9L02--
10L03---
11W10+
12W20++
13L01-
14L02--
15L03---
16L04----
17L05-----
18W10+
19L01-
20W10+
Sheet1
Cell Formulas
RangeFormula
B3B3=--(B2+OR(AND(A3<>"W",A2<>"W"),A3<>"W"))*(A3<>"W")
C3:C20C3=--(C2+OR(AND(A3<>"W",A2<>"W"),A3<>"W"))*(A3<>"W")
D3:D20D3=CHOOSE(MIN(MAX(C3-B3,-1),1)+2,REPT("+",B3),"-",REPT("-",C3))
B4:B20B4=--(B3+OR(AND(A4<>"L",A3<>"L"),A4<>"L"))*(A4<>"L")
 
Upvote 0
would like to do this with out helper columns. ... I am trying to get the streak in column D.
Like this? (I am also assuming you have something wrong at the top of your results columns)

21 09 17.xlsm
ABCD
1W/LStreak
2
3L-
4W+
5L-
6W+
7W++
8L-
9L--
10L---
11W+
12W++
13L-
14L--
15L---
16L----
17L-----
18W+
19L-
20W+
Streaks
Cell Formulas
RangeFormula
D3:D20D3=IF(A3=A2,D2&LEFT(D2,1),IF(A3="L","-","+"))
 
Upvote 0
Solution
Thanks everyone for your help and for looking into this post. Peter_SSs that is exactly what I needed!!! I appreciate your help and guidance!
 
Upvote 0
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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