gtd526
Well-known Member
- Joined
- Jul 30, 2013
- Messages
- 684
- Office Version
- 2019
- Platform
- Windows
Hello,
I'm trying to record the W/L record of a Team whether its Home or Away.
Right now the "formula" doesn't care if its Home or Away, using a SUMPRODUCT formula.
Thank you.
I'm trying to record the W/L record of a Team whether its Home or Away.
Right now the "formula" doesn't care if its Home or Away, using a SUMPRODUCT formula.
Thank you.
Book1.xlsm | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
2 | Only "Home" - Odd rows only(A:A) | Only "AWAY" - Even rows only(A:A) | |||||||||||||
3 | Team | ATS | Team | W | L | Psh | Team | W | L | Psh | |||||
4 | WAS | -5 | L | ATL | 1 | 0 | 0 | ATL | 1 | 0 | 0 | ||||
5 | ORL | 5 | W | BOS | 0 | 0 | 0 | BOS | 0 | 0 | 0 | ||||
6 | LAL | 6.5 | L | BKN | 0 | 0 | 0 | BKN | 0 | 0 | 0 | ||||
7 | ATL | -6.5 | W | CHA | 0 | 0 | 0 | CHA | 0 | 0 | 0 | ||||
8 | PHX | 2 | W | CHI | 0 | 1 | 0 | CHI | 0 | 1 | 0 | ||||
9 | TOR | -2 | L | CLE | 0 | 0 | 0 | CLE | 0 | 0 | 0 | ||||
10 | DET | 7 | W | DAL | 0 | 0 | 0 | DAL | 0 | 0 | 0 | ||||
11 | CHI | -7 | L | DEN | 0 | 1 | 0 | DEN | 0 | 1 | 0 | ||||
12 | MIN | 6 | PSH | DET | 1 | 0 | 0 | DET | 1 | 0 | 0 | ||||
13 | MIL | -6 | PSH | GSW | 0 | 1 | 0 | GSW | 0 | 1 | 0 | ||||
14 | PHI | 1 | L | HOU | 0 | 0 | 0 | HOU | 0 | 0 | 0 | ||||
15 | NOP | -1 | W | IND | 0 | 0 | 0 | IND | 0 | 0 | 0 | ||||
16 | MIA | 3.5 | W | LAC | 0 | 0 | 0 | LAC | 0 | 0 | 0 | ||||
17 | DEN | -3.5 | L | LAL | 0 | 1 | 0 | LAL | 0 | 1 | 0 | ||||
18 | POR | -2.5 | W | MEM | 0 | 0 | 0 | MEM | 0 | 0 | 0 | ||||
19 | GSW | 2.5 | L | MIA | 1 | 0 | 0 | MIA | 1 | 0 | 0 | ||||
20 | UTA | 3 | W | MIL | 0.5 | 0.5 | 1 | MIL | 0.5 | 0.5 | 1 | ||||
21 | SAC | -3 | L | MIN | 0.5 | 0.5 | 1 | MIN | 0.5 | 0.5 | 1 | ||||
22 | NOP | 1 | 0 | 0 | NOP | 1 | 0 | 0 | |||||||
23 | NYK | 0 | 0 | 0 | NYK | 0 | 0 | 0 | |||||||
24 | OKC | 0 | 0 | 0 | OKC | 0 | 0 | 0 | |||||||
25 | ORL | 1 | 0 | 0 | ORL | 1 | 0 | 0 | |||||||
26 | PHI | 0 | 1 | 0 | PHI | 0 | 1 | 0 | |||||||
27 | PHX | 1 | 0 | 0 | PHX | 1 | 0 | 0 | |||||||
28 | POR | 1 | 0 | 0 | POR | 1 | 0 | 0 | |||||||
29 | SAC | 0 | 1 | 0 | SAC | 0 | 1 | 0 | |||||||
30 | SAN | 0 | 0 | 0 | SAN | 0 | 0 | 0 | |||||||
31 | TOR | 0 | 1 | 0 | TOR | 0 | 1 | 0 | |||||||
32 | UTA | 1 | 0 | 0 | UTA | 1 | 0 | 0 | |||||||
33 | WAS | 0 | 1 | 0 | WAS | 0 | 1 | 0 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F4:F33 | F4 | =SUMPRODUCT(($A$4:$A$33=$E4)*($C$4:$C$33="W"))+($H4*0.5) |
G4:G33 | G4 | =SUMPRODUCT(($A$4:$A$33=$E4)*($C$4:$C$33="L"))+($H4*0.5) |
M4:M33,H4:H33 | H4 | =SUMPRODUCT(($A$4:$A$33=$E4)*($C$4:$C$33="psh")) |
K4:K33 | K4 | =SUMPRODUCT(($A$4:$A$33=$J4)*($C$4:$C$33="W"))+($M4*0.5) |
L4:L33 | L4 | =SUMPRODUCT(($A$4:$A$33=$J4)*($C$4:$C$33="L"))+($M4*0.5) |
B5,B33,B31,B29,B27,B25,B23,B21,B19,B17,B15,B13,B11,B9,B7 | B5 | =IF(ISTEXT(A4),IF(B4="PK","PK",IF(B4<0,B4*-1,B4*-1)),"") |
C5,C33,C31,C29,C27,C25,C23 | C5 | =IF(C4="W","L",IF(C4="L","W",IF(C4="PSH","PSH",""))) |
Press CTRL+SHIFT+ENTER to enter array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A4:A33 | Expression | =AND($AL4>=$AL$1,$AL4<>"") | text | NO |
B4:C11 | Cell | contains a blank value | text | NO |
C4:C33 | Cell Value | ="psh" | text | NO |
C4:C33 | Cell Value | ="W" | text | NO |
C4:C33 | Cell Value | ="L" | text | NO |
A4:A33 | Expression | =NOT(ISERROR(MATCH($A4,$G$52:$G$66,0))) | text | NO |
B4:B33 | Cell Value | <0 | text | NO |
B4:B33 | Expression | =B4<=-10 | text | NO |
B4:B33 | Expression | =AND($A4=$AE4,$B4>0,$A4<>"",$AL4<=$AL$1) | text | NO |