Chapter 6: Conditional formatting with formulas

Exercise 26: Color weekend rows

Fill the Saturday and Sunday rows (columns A–B) of the work schedule with light gray.

This drill is for computer screens. On a phone you can review the steps.

  1. Select A2:B11
  2. Home > Conditional Formatting > New Rule (Alt → H → L → N)
  3. Choose "Use a formula to determine which cells to format"
  4. Enter =WEEKDAY($A2,2)>5, click Format, choose light gray, and click OK

Key takeaway

The 2 in WEEKDAY counts Monday = 1 through Sunday = 7, so values above 5 are weekends.

See conditional formatting for details.

← Back to all exercises