Conditional Format in Groups.xlsm | ||||
---|---|---|---|---|
I | J | |||
1 | Food | 0 | ||
2 | Cake | 1 | ||
3 | Cake | 1 | ||
4 | Cake | 1 | ||
5 | Cake | 1 | ||
6 | Cake | 1 | ||
7 | Pie | 0 | ||
8 | Pie | 0 | ||
9 | Pie | 0 | ||
10 | Donut | 1 | ||
11 | Donut | 1 | ||
12 | Donut | 1 | ||
13 | Donut | 1 | ||
14 | Donut | 1 | ||
15 | Donut | 1 | ||
16 | Donut | 1 | ||
Cond Format In Groups |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2:J16 | J2 | =IF(I2=I1,J1,1-J1) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
I2:I16 | Expression | =$J2 | text | YES |
Fluff.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Code | ||||
2 | a | ||||
3 | a | ||||
4 | a | ||||
5 | b | ||||
6 | b | ||||
7 | b | ||||
8 | c | ||||
9 | c | ||||
10 | d | ||||
11 | e | ||||
12 | e | ||||
13 | f | ||||
14 | |||||
15 | |||||
16 | |||||
Main |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A2:C16 | Expression | =AND($A2<>"",MOD(SUMPRODUCT(--($A$2:$A2<>$A$1:$A1)),2)) | text | NO |