Good day.
I am trying to make a display of the teams' current winning or losing streak. So, when a certain team wins 2 games in a row, I want the cell to display "W2" or if a team loses 3 games, then "L3". Also, let us say that if a team has a 3-game wining streak (W3) and then loses their next game, then there should be a L1 displayed.
I've tried various examples that I searched for over the net, however, as you can see in the L2BB image I posted, I have 2 columns of Wins and Losses (depending if a certain team is at home or visiting) and it wasn't working at all.
Many thanks in advance.
I am trying to make a display of the teams' current winning or losing streak. So, when a certain team wins 2 games in a row, I want the cell to display "W2" or if a team loses 3 games, then "L3". Also, let us say that if a team has a 3-game wining streak (W3) and then loses their next game, then there should be a L1 displayed.
I've tried various examples that I searched for over the net, however, as you can see in the L2BB image I posted, I have 2 columns of Wins and Losses (depending if a certain team is at home or visiting) and it wasn't working at all.
Many thanks in advance.
2023-24 NHL Season (2).xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Home | Visitor | |||||||||||||
2 | Date | Team | Score | OT | RW | ROW | W/L/OTL | Score | OT | RW | ROW | W/L/OTL | Team | ||
3 | Tuesday, October 10, 2023 | Tampa Bay Lightning | 5 | x | x | W | 3 | L | Nashville Predators | ||||||
4 | Pittsburgh Penguins | 2 | L | 4 | x | x | W | Chicago Blackhawks | |||||||
5 | Vegas Golden Knights | 4 | x | x | W | 1 | L | Seattle Kraken | |||||||
6 | Wednesday, October 11, 2023 | Carolina Hurricanes | 5 | x | x | W | 3 | L | Ottawa Senators | ||||||
7 | Toronto Maple Leafs | 6 | W | 5 | x | OTL | Montréal Canadiens | ||||||||
8 | Boston Bruins | 3 | x | x | W | 1 | L | Chicago Blackhawks | |||||||
9 | Calgary Flames | 5 | x | x | W | 3 | L | Winnipeg Jets | |||||||
10 | Los Angeles Kings | 2 | L | 5 | x | x | W | Colorado Avalanche | |||||||
11 | Vancouver Canucks | 8 | x | x | W | 1 | L | Edmonton Oilers | |||||||
12 | Thursday, October 12, 2023 | Buffalo Sabres | 1 | L | 5 | x | x | W | New York Rangers | ||||||
13 | Columbus Blue Jackets | 2 | L | 4 | x | x | W | Philadelphia Flyers | |||||||
14 | New Jersey Devils | 4 | x | x | W | 3 | L | Detroit Red Wings | |||||||
15 | Dallas Stars | 2 | W | 1 | x | OTL | St. Louis Blues | ||||||||
16 | Minnesota Wild | 2 | x | x | W | 0 | L | Florida Panthers | |||||||
17 | Nashville Predators | 3 | x | x | W | 0 | L | Seattle Kraken | |||||||
18 | San Jose Sharks | 1 | L | 4 | x | x | W | Vegas Golden Knights | |||||||
19 | Friday, October 13, 2023 | New Jersey Devils | 3 | x | OTL | 4 | W | Arizona Coyotes | |||||||
20 | Washington Capitals | 0 | L | 4 | x | x | W | Pittsburgh Penguins | |||||||
21 | Saturday, October 14, 2023 | Ottawa Senators | 5 | x | x | W | 2 | L | Philadelphia Flyers | ||||||
22 | Winnipeg Jets | 6 | x | x | W | 4 | L | Florida Panthers | |||||||
23 | Boston Bruins | 3 | x | x | W | 2 | L | Nashville Predators | |||||||
24 | Columbus Blue Jackets | 5 | x | x | W | 3 | L | New York Rangers | |||||||
25 | Detroit Red Wings | 6 | x | x | W | 4 | L | Tampa Bay Lightning | |||||||
26 | Montréal Canadiens | 3 | x | x | W | 2 | L | Chicago Blackhawks | |||||||
27 | Pittsburgh Penguins | 5 | x | x | W | 2 | L | Calgary Flames | |||||||
28 | Toronto Maple Leafs | 7 | x | x | W | 4 | L | Minnesota Wild | |||||||
29 | New York Islanders | 3 | x | x | W | 2 | L | Buffalo Sabres | |||||||
30 | St. Louis Blues | 2 | W | 1 | x | OTL | Seattle Kraken | ||||||||
Schedule |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G3:G30 | G3 | =IF(C3>H3,"W",IF(D3="x","OTL",IF(C3<H3,"L",""))) |
L3:L30 | L3 | =IF(C3<H3,"W",IF(I3="x","OTL",IF(C3>H3,"L",""))) |