Hello Everyone,
In the attached table for Soccer League, I am trying to come up with a formula that will count only the home and away games that have been played (CD for home and CL for away columns, the formula is =COUNTIF($C$5:$C$346,BQ7)), not all the games in the season. For example, the whole season has 34 weeks and I want the ranking based only on the 31 week that was played. The existing formula is showing the exact points and ranking only if I remove the remaining games that I have put as fixtures. If I keep these upcoming games, the table counts all the games I listed as played which is wrong. Basically, I want the formula that will work properly with all the soccer games in one season, finished ones and the upcoming ones.
I guess I should use the IF and AND in conjunction with the COUNTIF function to be able to set the scores in the first half and the second half of the games (columns D, E, F and G) as criteria for counting these games played. Can someone write me how the formula should look like?
Thank you in advance.
In the attached table for Soccer League, I am trying to come up with a formula that will count only the home and away games that have been played (CD for home and CL for away columns, the formula is =COUNTIF($C$5:$C$346,BQ7)), not all the games in the season. For example, the whole season has 34 weeks and I want the ranking based only on the 31 week that was played. The existing formula is showing the exact points and ranking only if I remove the remaining games that I have put as fixtures. If I keep these upcoming games, the table counts all the games I listed as played which is wrong. Basically, I want the formula that will work properly with all the soccer games in one season, finished ones and the upcoming ones.
I guess I should use the IF and AND in conjunction with the COUNTIF function to be able to set the scores in the first half and the second half of the games (columns D, E, F and G) as criteria for counting these games played. Can someone write me how the formula should look like?
Cell Formulas | ||
---|---|---|
Range | Formula | |
BR7:BR24 | BR7 | =RANK(CC7,$CC$7:$CC$24) |
BS7:BS24 | BS7 | =SUMPRODUCT(($BR$7:$BR$24=$BR7)*($CB$7:$CB$24>CB7)) |
BT7:BT24 | BT7 | =SUMPRODUCT(($BR$7:$BR$24=$BR7)*($BS$7:$BS$24=$BS7)*($BZ$7:$BZ$24>BZ7)) |
BU7:BU24 | BU7 | =SUMPRODUCT(($BR$7:$BR$24=$BR7)*($BS$7:$BS$24=$BS7)*($BT$7:$BT$24=$BT7)*($CP$7:$CP$24>CP7)) |
BV7:CC24 | BV7 | =CD7+CL7 |
CD7:CD24 | CD7 | =COUNTIF($C$5:$C$346,BQ7) |
CE7:CE24 | CE7 | =SUMPRODUCT(($C$5:$C$346=BQ7)*($F$5:$F$346>$G$5:$G$346)) |
CF7:CF24 | CF7 | =SUMPRODUCT(($C$5:$C$346=BQ7)*($F$5:$F$346=$G$5:$G$346)*($F$5:$F$346<>"")) |
CG7:CG24 | CG7 | =SUMPRODUCT(($C$5:$C$346=BQ7)*($F$5:$F$346<$G$5:$G$346)) |
CH7:CH24 | CH7 | =SUMIF($C$5:$C$346,BQ7,$F$5:$F$346) |
CI7:CI24 | CI7 | =SUMIF($C$5:$C$346,BQ7,$G$5:$G$346) |
CJ7:CJ24,CR7:CR24 | CJ7 | =CH7-CI7 |
CK7:CK24,CS7:CS24 | CK7 | =CE7*3+CF7*1 |
CL7:CL24 | CL7 | =COUNTIF($H$5:$H$346,BQ7) |
CM7:CM24 | CM7 | =SUMPRODUCT(($H$5:$H$346=BQ7)*($F$5:$F$346<$G$5:$G$346)) |
CN7:CN24 | CN7 | =SUMPRODUCT(($H$5:$H$346=BQ7)*($F$5:$F$346=$G$5:$G$346)) |
CO7:CO24 | CO7 | =SUMPRODUCT(($H$5:$H$346=BQ7)*($F$5:$F$346>$G$5:$G$346)) |
CP7:CP24 | CP7 | =SUMIF($H$5:$H$346,BQ7,$G$5:$G$346) |
CQ7:CQ24 | CQ7 | =SUMIF($H$5:$H$346,BQ7,$F$5:$F$346) |
BP7:BP24 | BP7 | =SUM(BR7:BU7) |
Thank you in advance.