I'm running a scoresheet for my league and I need to track each player's wins and losses record throughout the season, including the previous season, so that I can assign a proper player ranking. If a player wins or loses 7 out of 10 matches his ranking goes up or down, depending on how he (or she) does. Players often do not play every week, but I still need to track their wins and losses through multiple seasons. More often than not player ranking don't change because they don't meet the 7 out of ten threshold, but when they do, I want the spreadsheet to automatically post the new ranking.
In the attached Mini-sheet example Joe's ranking remained the same because over a period of 13 weeks he played 10 matches, but did not meet the 7 out of 10 wins or losses threshold. Meanwhile Jack's ranking went from 6 up to 7 because over a period of 15 weeks he played 10 matches and won 7 of them. In Mary's example, her ranking went down because over a period of 14 weeks she played 10 matches and lost 7 times. If a player rank goes up then the counting of wins and losses starts fresh.
The problem I'm having is how to automatically track a player's last 10 matches whether he plays the matches in 10 weeks, 10 months or even 10 years.
In the attached Mini-sheet example Joe's ranking remained the same because over a period of 13 weeks he played 10 matches, but did not meet the 7 out of 10 wins or losses threshold. Meanwhile Jack's ranking went from 6 up to 7 because over a period of 15 weeks he played 10 matches and won 7 of them. In Mary's example, her ranking went down because over a period of 14 weeks she played 10 matches and lost 7 times. If a player rank goes up then the counting of wins and losses starts fresh.
The problem I'm having is how to automatically track a player's last 10 matches whether he plays the matches in 10 weeks, 10 months or even 10 years.
IFTestBook2.xlsx | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | |||
3 | Player | Current Rank | Current Wins | Current Losses | New Rank | 1/1 | 1/8 | 1/15 | 1/22 | 1/29 | 2/5 | 2/12 | 2/19 | 2/26 | 3/5 | 3/12 | 3/19 | 3/26 | 4/2 | 4/9 | 4/16 | 4/23 | 4/30 | ||
4 | Joe | 4 | 6 | 5 | 4 | W | W | W | L | L | W | W | L | W | W | W | L | W | L | ||||||
5 | Jack | 6 | 7 | 3 | 7 | W | W | L | W | W | L | W | W | L | W | W | |||||||||
6 | Mary | 3 | 3 | 7 | 2 | L | W | L | W | L | L | L | W | W | L | L | L | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C4 | C4 | =COUNTIF(K4:W4,"W") |
D4:D5 | D4 | =COUNTIF(H4:W4,"L") |
E4:E6 | E4 | =IF(C4>6, B4+1, IF(D4>6, B4-1, IF(B4=2, 2, IF(B4=3, 3, IF(B4=4, 4, IF(B4=5, 5, IF(B4=6, 6, IF(B4=7, 7)))))))) |
C5 | C5 | =COUNTIF(I5:W5,"W") |
C6 | C6 | =COUNTIF(J6:W6,"W") |
D6 | D6 | =COUNTIF(J6:W6,"L") |