A traffic light
In Formula kid, you colored the worse grades red. Now you’ll make a traffic light: three colors from three rules.
| Grade | Color |
|---|---|
| 1 | green |
| 2 | yellow |
| 3 and worse | red |
Set up the rules
-
On the
Gradessheet, select B2:B6. -
Format → Conditional formatting. On the right, you’ll see the rule from Formula kid (greater than 2 = red). Leave it there.
-
Click Add another rule. Choose Is equal to and type
1. Color: green. Done. -
Add another rule again. Is equal to
2. Color: yellow. Done.
Now you have a traffic light. When you change a grade, the color changes.
When several rules apply to the same cell, the one higher up in the list wins. You change the order by grabbing a rule with the mouse and dragging it.
A custom formula
Sometimes you want to color a whole row. Like a whole day in your pocket money when you spent more than $20.
-
On the
Moneysheet, select A2:E8. -
Format → Conditional formatting → Add another rule.
-
Under Format cells if, choose Custom formula is at the very bottom.
-
Type
=$C2>20. The dollar sign before C means it should always look at column C. -
Pick a light orange. All of Friday gets colored.
Too many colors make a mess. Two or three rules per sheet are enough.
轮到你了 💪
- Your grades have a traffic light.
- In pocket money, the whole row with big spending gets colored.
- You know how to change the order of the rules.
Done when: you can set up several rules and a custom formula.
What to take away from this lesson
- Several rules = a traffic light.
- The rule higher up wins.
- A custom formula colors a whole row.
- The dollar sign holds the column.
© 2026 Ing. Martin Polak / AlgoRhino · 内容使用条款