Making winning teams in highlighted cells of the soccer table

VKiprijan

New Member
Joined
Feb 24, 2021
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
Hi guys,

Can someone assist with a formula by which each winning team regardless if is playing home or away can be automatically identified by the final result (columns F and G) with highlighting the cell in a different colour, let's say in blue?

Soccer League v2.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAM
3RoundResultTotal Goals
4DateHome1st Half2nd HalfAwayPOINTS45'90'KT1 PP2 PP0 - 1 0 - 22 - 3 2 - 43 - 54 - 62+3+4+5+7+GGGG3+GG4+1 GG2 GGG 1PPG 2PPVG X 1PPOG D/GDP2+ 1PP2+ 2PP
505.08.2022Eintracht Frankfurt0516Bayern Munich0322252      2+3+4+5+7+GGGG3+GG4+ 2GG3+2+1>2 GG3+DP2+ 1PP2+ 2PP
606.08.2022Wolfsburg1222Werder Bremen112XX31   2-43-54-62+3+4+  GGGG3+GG4+1GG2GG3+1+1>2 GG3+ 2+ 1PP2+ 2PP
706.08.2022Union Berlin1031Hertha Berlin3011113   2-43-54-62+3+4+  GGGG3+GG4+ 2GG1+3+2>1 GG3+DP 2+ 2PP
806.08.2022Bochum1112Mainz03X2221  2-32-43-5 2+3+   GGGG3+ 1GG2GG2+1+1>2XGG3+ 2+ 1PP2+ 2PP
906.08.2022B. Monchengladbach1131Hoffenheim30X1122   2-43-54-62+3+4+  GGGG3+GG4+1GG2GG2+2+1=2XGG3+ 2+ 1PP2+ 2PP
1006.08.2022Augsburg0004Freiburg03X2204   2-43-54-62+3+4+       1+3+2>1XDNDG  2+ 2PP
1106.08.2022Dortmund1010Bayer Leverkusen30111100-10-2              1+NG1>2 GNDG   
1207.08.2022Stuttgart1111RB Leipzig11XXX20 0-22-32-4  2+    GG  1GG2GG2+NG1>2XGG 2+ 1PP2+ 2PP
1307.08.2022FC Koln0031Schalke30X1104   2-43-54-62+3+4+  GGGG3+GG4+ 2GG1+3+2>1XGG3+  2+ 2PP
Bunde League
Cell Formulas
RangeFormula
I5:I13I5=IF(F5="","",IF(F5>G5,3,IF(F5=G5,1,0)))
J5:J13J5=IF(G5="","",IF(G5>F5,3,IF(G5=F5,1,0)))
K5:K13K5=IF(D5=""," ",IF(D5-E5>0,1,IF(D5-E5<0,2,"X")))
L5:L13L5=IF(F5=""," ",IF(F5-G5>0,1,IF(F5-G5<0,2,"X")))
M5:M13M5=IF(F5="","",IF(F5=G5,"X",IF(F5<G5,2,IF(F5>G5,1,0))))
N5:N13N5=IF(AND(D5<>"",E5<>""),D5+E5,"")
O5:O13O5=IF(AND(F5<>"",G5<>""),(F5+G5)-(D5+E5),"")
P5:P13P5=IF(AND(F5<>"",G5<>"",F5+G5<=1),"0-1","")
Q5:Q13Q5=IF(AND(F5<>"",G5<>"",F5+G5<=2),"0-2","")
R5:R13R5=IF(F5+G5=2,"2-3",IF(F5+G5=3,"2-3",""))
S5:S13S5=IF(F5+G5=2,"2-4",IF(F5+G5=3,"2-4",IF(F5+G5=4,"2-4","")))
T5:T13T5=IF(F5+G5=3,"3-5",IF(F5+G5=4,"3-5",IF(F5+G5=5,"3-5","")))
U5:U13U5=IF(F5+G5=4,"4-6",IF(F5+G5=5,"4-6",IF(F5+G5=6,"4-6","")))
V5:V13V5=IF(F5+G5="","",IF(F5+G5>=2,"2+",""))
W5:W13W5=IF(F5+G5="","",IF(F5+G5>=3,"3+",""))
X5:X13X5=IF(F5+G5="","",IF(F5+G5>=4,"4+",""))
Y5:Y13Y5=IF(F5+G5="","",IF(F5+G5>=5,"5+",""))
Z5:Z13Z5=IF(F5+G5="","",IF(F5+G5>=7,"7+",""))
AA5:AA13AA5=IF(AND(F5>0,G5>0),"GG","")
AB5:AB13AB5=IF(AND(D5+F5>0,E5+G5>0,F5+G5>2),"GG3+","")
AC5:AC13AC5=IF(AND(D5+F5>0,E5+G5>0,F5+G5>3),"GG4+","")
AD5:AD13AD5=IF(AND(D5>0,E5>0),"1GG","")
AE5:AE13AE5=IF(AND(F5>0,G5>0),"2GG","")
AF5:AF13AF5=IF(N5="","",IF(113<1,"NG",IF(N5<2,"1+",IF(N5<3,"2+","3+"))))
AG5:AG13AG5=IF(O5="","",IF(O5<1,"NG",IF(O5<2,"1+",IF(O5<3,"2+","3+"))))
AH5:AH13AH5=IF(AND(N5<>"",O5<>""),IF(N5<O5,"2>1",IF(N5>O5,"1>2","1=2")),"")
AI5:AI13AI5=IF(AND(D5<>"",E5<>"",D5=E5),"X","")
AJ5:AJ13AJ5=IF(N5="","",IF(F5=0,IF(G5=0,"NG","DNDG"),IF(F5>0,IF(G5>0,IF(F5+G5>=3,"GG3+","GG"),"GNDG"),"DNDG")))
AK5:AK13AK5=IF(OR(AND(D5>E5,F5>G5,F5>D5),AND(E5>D5,G5>F5,G5>E5)),"DP","")
AL5:AL13AL5=IF(D5+E5>=2,"2+ 1PP","")
AM5:AM13AM5=IF(F5+G5>=2,"2+ 2PP","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H5:H13Cell ValueduplicatestextNO
C5:C13Cell ValueduplicatestextNO


Thanks and appreciate it in advance.

Thank you all.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Two conditional formatting rules.
With Away cells highlighted:
1684266127623.png

With Home cells:
1684266234845.png
 
Upvote 0
Solution

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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