Conditional formatting for football pool winners

macfuller

Active Member
Joined
Apr 30, 2014
Messages
319
Office Version
  1. 365
Platform
  1. Windows
I'm tracking the college football pools. I'd like to have conditional formatting to show the winner of each matchup. In the example I've chosen bold text and an orange border. But, I'm having a tough time figuring out how to write the conditional formatting logic to have it evaluate every pair of games.

Here is my current formatting code running from G5 to G56. Teams are in column G starting with G5, scores are in column H.

=IF(ISEVEN(ROW()),H6>OFFSET(H6,-1,0),H5>OFFSET(H5,1,0))

And here are the results - what's up with the Holiday Bowl? I appreciate your help.

CFP Bowl Pool.xlsx
DEFGH
42021/2022 BOWLSTEAMSActual FINAL SCORE
5QUICK LANENEVADA24
627-Dec11AMESPNW.MICHIGAN52
7MILITARYBOSTON COLLEGEý
827-Dec2:30PMESPNE.CAROLINAý
9BIRMINGHAMAUBURN40
1028-DecNOONESPNHOUSTON20
11FIRST RESPONDERAIR FORCE17
1228-Dec3:15PMESPNLOUISVILLE20
13LIBERTYMISS STATE27
1428-Dec6:45PMESPNTEXAS TECH20
15HOLIDAYN.CAROLINA ST18
1628-Dec8PMFOXUCLA26
17GUARANTEED RATEMINNESOTA
1828-Dec10:15PMESPNW.VIRGINIA
19FENWAYSMUý
2029-Dec11AMESPNVIRGINIAý
21PINSTRIPEMARYLAND
2229-Dec2:15PMESPNVIRGINIA TECH
23CHEEZ-ITCLEMSON
2429-Dec5:45PMESPNIOWA STATE
25ALAMOOKLAHOMA
2629-Dec9:15PMESPNOREGON
27DUKE'S MAYON.CAROLINA
2830-Dec11:30AMESPNS.CAROLINA
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G5:G56Expression=IF(ISEVEN(ROW()),H6>OFFSET(H6,-1,0),H5>OFFSET(H5,1,0))textNO
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Maybe...

Select G5:G56
Formula in CF
=AND(ISNUMBER($H5),$H5=MAX(OFFSET(INDEX(H$5:H$1000,MATCH(REPT("z",255),$F$5:$F6)),-1,0,2)))
pick a format

M
 
Upvote 0
Sorry, nothing gets formatted with that.

hmm...let's try another formula (worked perfectly for me)

Select G5:G100
Use this formula in CF
=AND(ISNUMBER($H5),$H5=MAX(OFFSET(INDEX($H$5:$H$100,2*(INT((ROWS($G$5:$G5)-1)/2)+1)-1),0,0,2)))
pick a format

M.
 
Upvote 0
Test

Pasta1
DEFGH
42021/2022 BOWLSTEAMSActual FINAL SCORE
5QUICK LANENEVADA24
627/12/202111AMESPNW.MICHIGAN52
7MILITARYBOSTON COLLEGEý
827/12/20212:30PMESPNE.CAROLINAý
9BIRMINGHAMAUBURN40
1028/12/2021NOONESPNHOUSTON20
11FIRST RESPONDERAIR FORCE17
1228/12/20213:15PMESPNLOUISVILLE20
13LIBERTYMISS STATE27
1428/12/20216:45PMESPNTEXAS TECH20
15HOLIDAYN.CAROLINA ST18
1628/12/20218PMFOXUCLA26
17GUARANTEED RATEMINNESOTA
1828/12/202110:15PMESPNW.VIRGINIA
19FENWAYSMUý
2029/12/202111AMESPNVIRGINIAý
21PINSTRIPEMARYLAND
2229/12/20212:15PMESPNVIRGINIA TECH
23CHEEZ-ITCLEMSON
2429/12/20215:45PMESPNIOWA STATE
25ALAMOOKLAHOMA
2629/12/20219:15PMESPNOREGON
27DUKE'S MAYON.CAROLINA
2830/12/202111:30AMESPNS.CAROLINA
Plan3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G5:G30Expression=AND(ISNUMBER($H5),$H5=MAX(OFFSET(INDEX($H$5:$H$100,2*(INT((ROWS($G$5:$G5)-1)/2)+1)-1),0,0,2)))textNO


M.
 
Upvote 0
Solution
That seems to have done the trick - thanks very much! What a convoluted solution to what seems like would be a common request... wasn't Excel designed for sports pools??
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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