Conditional Formatting with Criteria

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
675
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I want to add Conditional Formatting, Highlight AH:AM if greater than the cell above or below. These are NFL teams facing each other (2 lines per game, 4,5--6,7--8,9--10,11 thru Row 35.

A:A and AW:AW have to match, then highlight AH:AM if ALL are greater than the other.
It should work for BUF, DAL(even if there's a Tie), DET, PHI, BAL, MIA, SEA, KC

Right know its highlighting yellow if its greater than the other.

Thank you.

Cell Formulas
RangeFormula
AH4:AH35AH4=IFERROR(VLOOKUP($A4,Stats!$Q$3:$AL$34,22,0),"")
AI4:AI35AI4=IFERROR(VLOOKUP($A4,Stats!$BZ$3:$CL$44,13,0),"")
AJ4:AJ35AJ4=IFERROR(VLOOKUP($A4,Stats!$AR$3:$BN$34,22,0),"")
AK4:AK35AK4=IFERROR(VLOOKUP($A4,Stats!$BZ$3:$CF$100,7,0),"")
AL4:AL35AL4=IFERROR(VLOOKUP($A4,Stats!$EE$3:$EK$44,7,0),"")
AM4:AM35AM4=IFERROR(VLOOKUP($A4,Stats!$Q$3:$AM$34,23,0),"")
AW4,AW34,AW32,AW30,AW28,AW26,AW24,AW22,AW20,AW18,AW16,AW14,AW12,AW10,AW8,AW6AW4=IFERROR(IFS($AV4>$AV5,$A4,$A4<>"",IF($AV4=$AV5,"Tie","")),"")
AW5,AW35,AW33,AW31,AW29,AW27,AW25,AW23,AW21,AW19,AW17,AW15,AW13,AW11,AW9,AW7AW5=IFERROR(IFS($AV5>$AV4,$A5,$A5<>"",IF($AV4=$AV5,"Tie","")),"")
 
Everything is working well. Thank you for the formulas.
Hello, this is using Conditional Formatting to highlight cells if TRUE, and its working.
How can I add to the formula if $A4 (team) is showing in another cell range (G52:G66) then return FALSE so it doesn't show highlights.
Thank you.
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hello, this is using Conditional Formatting to highlight cells if TRUE, and its working.
How can I add to the formula if $A4 (team) is showing in another cell range (G52:G66) then return FALSE so it doesn't show highlights.
Thank you.
Try this.

Select AH4:AM29。
Add conditional formatting as the first Criteria
=COUNTIF($G$52:$G$66,$A4)>0
check "Stop If True" as True.

NFL score highlight-1.xlsx
AAHAIAJAKALAMAW
1Week:Points
2TeamsNY/APts/DPts/GSc %3D ConversionANY/AMy Fav
3151617181920
4LVR5.92.3245040%5.5LVR
5LAR5.41.791835.944%4.3
6NYJ5.51.671932.637%5
7BUF6.72.632847.556%7BUF
8CLE62.462646.345%5.9
9CIN5.91.882337.547%5.8CIN
10HOU5.41.521831.327%4.9
11DAL6.11.61835.630%6.4DAL
12MIN61.982238.631%5.6
13DET6.92.883545.838%7.5DET
14PHI8.22.44294043%8.1PHI
15NYG4.61.691935.632%4
16BAL72.513042.240%7.3BAL
17PIT5.31.431830.437%3.9
18JAX6.52.232640.939%7JAX
19TEN6.61.79193138%6.3
20MIA7.92.422442.142%7.9MIA
21LAC7.22.092336.441%7.8
22TB6.21.652034.835%6.7TB
23SF6.61.451827.337%6.3
24CAR5.21.472031.126%4.8
25SEA7.12.382444.155%7SEA
26KC72.93325051%7.9KC
27DEN6.31.51631.835%6.6
28NE6.71.621828.639%5.4NE
29ARZ5.21.982236.631%5.2
sheet1 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AH4:AM29Expression=COUNTIF($G$52:$G$66,$A4)>0textYES
AH7:AM7,AH9:AM9,AH11:AM11,AH13:AM13,AH15:AM15,AH17:AM17,AH19:AM19,AH21:AM21,AH23:AM23,AH25:AM25,AH27:AM27,AH29:AM29Expression=SUMPRODUCT((($AH6:$AM6)<($AH7:$AM7))^1)=6textNO
AH6:AM6,AH8:AM8,AH10:AM10,AH12:AM12,AH14:AM14,AH16:AM16,AH18:AM18,AH20:AM20,AH22:AM22,AH24:AM24,AH26:AM26,AH28:AM28Expression=SUMPRODUCT((($AH6:$AM6)>($AH7:$AM7))^1)=6textNO
AH5:AM5Expression=SUMPRODUCT((($AH4:$AM4)<($AH5:$AM5))^1)=6textNO
AH4:AM4Expression=SUMPRODUCT((($AH4:$AM4)>($AH5:$AM5))^1)=6textNO
 
Upvote 0
Try this.

Select AH4:AM29。
Add conditional formatting as the first Criteria
=COUNTIF($G$52:$G$66,$A4)>0
check "Stop If True" as True.

NFL score highlight-1.xlsx
AAHAIAJAKALAMAW
1Week:Points
2TeamsNY/APts/DPts/GSc %3D ConversionANY/AMy Fav
3151617181920
4LVR5.92.3245040%5.5LVR
5LAR5.41.791835.944%4.3
6NYJ5.51.671932.637%5
7BUF6.72.632847.556%7BUF
8CLE62.462646.345%5.9
9CIN5.91.882337.547%5.8CIN
10HOU5.41.521831.327%4.9
11DAL6.11.61835.630%6.4DAL
12MIN61.982238.631%5.6
13DET6.92.883545.838%7.5DET
14PHI8.22.44294043%8.1PHI
15NYG4.61.691935.632%4
16BAL72.513042.240%7.3BAL
17PIT5.31.431830.437%3.9
18JAX6.52.232640.939%7JAX
19TEN6.61.79193138%6.3
20MIA7.92.422442.142%7.9MIA
21LAC7.22.092336.441%7.8
22TB6.21.652034.835%6.7TB
23SF6.61.451827.337%6.3
24CAR5.21.472031.126%4.8
25SEA7.12.382444.155%7SEA
26KC72.93325051%7.9KC
27DEN6.31.51631.835%6.6
28NE6.71.621828.639%5.4NE
29ARZ5.21.982236.631%5.2
sheet1 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AH4:AM29Expression=COUNTIF($G$52:$G$66,$A4)>0textYES
AH7:AM7,AH9:AM9,AH11:AM11,AH13:AM13,AH15:AM15,AH17:AM17,AH19:AM19,AH21:AM21,AH23:AM23,AH25:AM25,AH27:AM27,AH29:AM29Expression=SUMPRODUCT((($AH6:$AM6)<($AH7:$AM7))^1)=6textNO
AH6:AM6,AH8:AM8,AH10:AM10,AH12:AM12,AH14:AM14,AH16:AM16,AH18:AM18,AH20:AM20,AH22:AM22,AH24:AM24,AH26:AM26,AH28:AM28Expression=SUMPRODUCT((($AH6:$AM6)>($AH7:$AM7))^1)=6textNO
AH5:AM5Expression=SUMPRODUCT((($AH4:$AM4)<($AH5:$AM5))^1)=6textNO
AH4:AM4Expression=SUMPRODUCT((($AH4:$AM4)>($AH5:$AM5))^1)=6textNO
Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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