Shade Saturdays and Sundays so a schedule or calendar reads at a glance. A WEEKDAY formula rule flags the weekend — and the same idea highlights any day you choose.
> 5 catches Saturday (6) and Sunday (7).
The example
A week of dates; the weekend rows are shaded.
| A | B | |
|---|---|---|
| 1 | Date | Day |
| 2 | 6/19/2026 | Fri |
| 3 | 6/20/2026 | Sat |
| 4 | 6/21/2026 | Sun |
| 5 | 6/22/2026 | Mon |
The formula
The conditional-formatting rule:
How it works
WEEKDAY turns a date into a day number you can test:
- Select the date range, then add a formula rule:
=WEEKDAY(A2, 2) > 5. - The second argument
2sets the numbering to Monday = 1 through Sunday = 7 — clean for “is it the weekend?” math. - Saturday is 6 and Sunday is 7, so
> 5is TRUE only on the weekend. - Pick a fill and click OK. To shade the whole row, select all columns and lock the date column:
=WEEKDAY($A2, 2) > 5.
Highlight a specific weekday by matching its number: =WEEKDAY(A2, 2) = 3 flags Wednesdays. To also skip holidays, add a COUNTIF against a holiday list: =OR(WEEKDAY(A2,2)>5, COUNTIF(holidays, A2)).
Try it: interactive demo
Pick a start date; a week shows with weekends shaded.
Variations
Whole row
Lock the date column:
A specific weekday
Highlight Wednesdays:
Weekends + holidays
Add a holiday list:
Pitfalls & errors
Mind the WEEKDAY type. The default type (1) makes Sunday = 1, so >5 would be wrong. Always pass 2 for the Monday-start numbering used here.
Real dates only. Text that looks like a date won’t evaluate — WEEKDAY needs a true date value.
Relative reference. The test cell (A2 or $A2) must match the active cell of your selection or the shading shifts.
Practice workbook
Frequently asked questions
How do I highlight weekends in Excel?
How do I shade the entire weekend row?
How do I also highlight holidays?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class