Modify Conditional Formatting to include Odd and Even rows

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
715
Office Version
  1. 2019
Platform
  1. Windows
Hello,

Looking to modify the Conditional Formatting for the Rule containing: =COUNTIF($H$69:$H$75,$A4)*($B4>0) and =COUNTIF($C$69:$C$75,$A4)*($B4>0), Both Applies to: A4:A33
I want to 1. Match ODD row cell values ($A$4:$A$33) to All cell values in $H$69:$H$75. 2. Match EVEN row cell values ($A$4:$A$33) to All cell values in $C$69:$C$75.
I want to keep the $B4>0 active in Both rules.

Here is a copy.

NBA.xlsm
ABCHIJ
4GSW7.5
5IND-7.5   
6MIL-5.5 
7ORL5.5   
8NOP4 
9PHI-4   
10SAC10 
11BOS-10   
12OKC-3.5 
13NYK3.5   
14WAS11.5 
15CHI-11.5   
16BRK15 
17DEN-15   
18 
19    
20 
21    
22 
23    
24 
25    
26 
27    
28 
29    
30 
31    
32 
33    
34InjuriesFav w/>0 ATSIndicator = Q>55%, AL & AM>60%
35ATS<-10Highlights for Home OnlyOdd Ball Team
36Fn + F2 = Cond Form to move cursor 
37 $0.00
38Odd Ball Stats
39Max %
40S, T>0, AL:AM>=60%$Q$63
4162.5%
422nd Max %
43M,N>0,Q,R>0,AL:AM>=60%$T$75
4461.9%
453rd Max %
46Q, R, S, T>0, AL:AM>=60%$K$39
4760.9%Total Games0
48Win's Needed 
49Max $AddressRemaining Games0
50S, T>0, AL:AM>=60%$Q$63Remaining W's Needed 
51$23.25Win's0
522nd Max $Inj Top2 Players Teams
53ATS <= -10$N$75Count = 0
54$22.13Teams w/ "Top 2 Player(s)"
553rd Max $GSW1
56M,N>0,Q,R>0,AL:AM>=60%$T$75ORL2
57$19.15BRK3
58 4
59 5
60Possible Candidates for Odd Ball 6
61@ Home, B, Q, R, AL:AM, AR 7
62  8
63  9
64  10
65  11
66
67
68Home >0, >75%, <>100%Away >0, >75%, <>100%
696-275%DETBRK72.2%13-5
7010-471%PORDEN71.4%5-2
7111-473%TORGSW70.0%7-3
72   MIN80.0%4-1
73      
74      
75      
Favs
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H69:J75Cellcontains a blank value textNO
H69:J75Expression=ISTEXT($H69)textNO
A69:C75Cellcontains a blank value textNO
A69:C75Expression=ISTEXT($C69)textNO
A4:A33Expression=COUNTIF($H$69:$H$75,$A4)*($B4>0)textNO
A4:A33Expression=COUNTIF($C$69:$C$75,$A4)*($B4>0)textNO
A50,A53,A56,A40,A43,A46Cell Value=$Q$75textNO
I36:J36Celldoes not contain a blank value textNO
H4:H33Expression=$H4=$AC$51textNO
H4:H33Expression=$H4=$Q$51textNO
H4:H33Expression=$H4=$K$39textNO
H4:H33Expression=$H4=$N$39textNO
H4:H33Expression=$H4=$Q$39textNO
H4:H33Expression=$H4=$T$39textNO
H4:H33Expression=$H4=$W$39textNO
H4:H33Expression=$H4=$T$51textNO
H4:H33Expression=$H4=$AF$39textNO
H4,H6:H33Cellcontains a blank value textNO
H55:H65Expression=$H55=""textNO
C4:C33Cell Value="psh"textNO
C4:C33Cell Value="W"textNO
C4:C33Cell Value="L"textNO
I4:J33Expression=LEN($I4)>1textNO
H55:H65Expression=ISTEXT($H55)textNO
B4:B33Cell Value<0textNO
B4:B33Expression=AND($A4=$AQ4,$B4>0,$A4<>"")textNO
B4:B33Expression=B4<=-10textNO
A50,A53,A56,A40,A43,A46Cell Value=$T$75textNO
A50,A53,A56,A40,A43,A46Cell Value=$Q$63textNO
A50,A53,A56,A40,A43,A46Cell Value=$AC$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$K$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$N$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$Q$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$T$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$W$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$Z$39textNO
A50,A53,A56,A40,A43,A46Cell Value=$T$51textNO
A50,A53,A56,A40,A43,A46Cell Value=$W$51textNO
A50,A53,A56,A40,A43,A46Cell Value=$Z$51textNO
A50,A53,A56,A40,A43,A46Cell Value=$AC$51textNO
A50,A53,A56,A40,A43,A46Cell Value=$T$63textNO
A50,A53,A56,A40,A43,A46Cell Value=$W$63textNO
A50,A53,A56,A40,A43,A46Cell Value=$Z$63textNO
A50,A53,A56,A40,A43,A46Cell Value=$AC$63textNO
A50,A53,A56,A40,A43,A46Cell Value=$AC$75textNO
A50,A53,A56,A40,A43,A46Cell Value=$W$87textNO
A50,A53,A56,A40,A43,A46Cell Value=$N$87textNO
A50,A53,A56,A40,A43,A46Cell Value=$U$100textNO
A62:A67,C62:C67Expression=COUNTIF($AE$104:$AH$114,IF(LEN(A62),A62))=COLUMNS($AE$104:$AH$114)textNO
A4:A33Expression=COUNTIF($H$55:$H$69,$A4)textNO
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi gtd526,

Im not quite sure to understand were does the row color is supposed to go in all that colorfull sheet. Here's a way to add a color to odd and even rows using new formula>custom formula

Excel Formula:
=ISEVEN(ROW())
Excel Formula:
=ISODD(ROW())

the in the manager, select conditional formating for this sheet (not for actual selection) and move those contition to the bottom with the arrows. That way you'll have row colors under your previous formating. Also, make sure that the conditional formating is applied to =$1:$1048576 or $A:$J.

If you need to meet multiple condition at once, use this:
Excel Formula:
=AND(ISEVEN(ROW()), another condition, another condition, ...)
Excel Formula:
=AND(ISODD(ROW()), another condition, another condition, ...)

bests regards,

Vincent
 
Upvote 0
If I have understood correctly, add these to the end of your current conditions
=COUNTIF($H$69:$H$75,$A4)*($B4>0)*ISODD(ROW($A4))
=COUNTIF($C$69:$C$75,$A4)*($B4>0)*ISEVEN(ROW($A4))
 
Upvote 0
Solution
If I have understood correctly, add these to the end of your current conditions
=COUNTIF($H$69:$H$75,$A4)*($B4>0)*ISODD(ROW($A4))
=COUNTIF($C$69:$C$75,$A4)*($B4>0)*ISEVEN(ROW($A4))
You are correct, and it works. Thank you.
 
Upvote 0

Forum statistics

Threads
1,225,626
Messages
6,186,087
Members
453,336
Latest member
Excelnoob223

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