Win Loss Record

Snarkdark

New Member
Joined
Mar 8, 2018
Messages
3
I'm currently trying to create a formula that automatically calculates a win/loss record based on increases and decreases in postgame rating. The following formula was working great for me until we decided to make changes to how we record time spent.

Code:
 =CONCATENATE(SUMPRODUCT(--(F14:F44<F15:F45))&"W-"&(SUMPRODUCT(--(F14:F44>F15:F45))-1&"L")) <f15:f45))&"w-"&(sumproduct(--(f14:f44><f15:f45))&"w-"&(sumproduct(--(f14:f44><f15:f45))&"w-"&(sumproduct(--(f14:f44>

The goal is an output of something like 3W-2L, and the formula worked well.

We decided it was also important to keep track of when breaks were taken between matches, so we started formatting the records as follows:

3338
3363
BREAK
3386
3419
3387
3362
BREAK
3389

<tbody>
</tbody>

Comments are added to the breaks to denote why it was taken and/or what was done during the time, all in the name of analysis and improvement.

The issue we face now is that these BREAKs break the formula as the it tries to find if a number is larger or smaller than the BREAK cell, leading to inaccurate record counts.

I'm relatively uneducated and very rusty in Excel so the answer may be a very simple one, but can anyone think of a solution to this issue? I know moving the breaks to a different section would make it an easy fix, but seeing the when and why of the pauses alongside the rises and falls of the ratings is very helpful in our overall analysis.</f15:f45))&"w-"&(sumproduct(--(f14:f44></f15:f45))&"w-"&(sumproduct(--(f14:f44></f15:f45))&"w-"&(sumproduct(--(f14:f44>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the MrExcel board!

Could we use a helper column?

Excel Workbook
FGH
143338
153363W
16BREAK
173386W
183419W
193387L
203362L
21BREAK
223389W4W-2L
23
W-L
 
Upvote 0
My reasoning for this is that each column meant to be a record of a single session, with the surrounding columns being records of the last and the next session. Conditional formatting with colors ranging from red->green for low to high is applied to each column to easily show trends in wins and losses with comments on certain cells to note circumstances for particularly low points and high points, so I'd like to keep the data as condensed as possible.
 
Upvote 0
That would for sure be a easy solution, but I was hoping to keep it to one column.
So where would the result for F14:F45 go?

If it is, say, just below that range (F47 in my example below) couldn't the helper cells go below that (eg in F49 down?). Rows 49, 50, 51 ... could be hidden if required.

Excel Workbook
F
143338
153363
16BREAK
173386
183419
193387
203362
21BREAK
223389
23
43
44
45
46
474W-2L
48
49W
50
51W
52W
53L
54L
55
56W
77
W-L




If this is still not feasible/acceptable, perhaps a user-defined function using vba would be?
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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