FormulaCraft

How to highlight weekend dates in Excel and Google Sheets

Topic:Conditional formatting
Excel & Google Sheets
=WEEKDAY(A2,2)>5

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the date range, e.g. A2:A30.
  2. 2Open Conditional Formatting and choose 'Use a formula'.
  3. 3Enter =WEEKDAY(A2,2)>5 — with mode 2, Monday=1 through Sunday=7, so values 6 and 7 are Saturday and Sunday. Choose a highlight color and save.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

The formula is highlighting non-date cells. How do I prevent that?

Wrap with AND and ISNUMBER: =AND(ISNUMBER(A2),WEEKDAY(A2,2)>5) so only numeric date values trigger the highlight and text or empty cells are ignored.

How do I highlight the entire row, not just the date cell?

Select the full row range, then in the formula anchor the column reference: =WEEKDAY($A2,2)>5. The $ before A keeps the column fixed while the row evaluates per row.

How do I highlight ONLY Saturday or ONLY Sunday?

Use =WEEKDAY(A2,2)=6 for Saturday-only and =WEEKDAY(A2,2)=7 for Sunday-only. Create two separate rules if you want distinct colors.

How do I exclude public holidays from the weekend highlight?

Combine with MATCH: =AND(WEEKDAY(A2,2)>5,ISNA(MATCH(A2,Holidays,0))) where Holidays is a named range listing your holiday dates. The cell highlights only if it is a weekend AND not in the Holidays list.

Does this work the same in Google Sheets?

Yes — Google Sheets supports WEEKDAY identically. Go to Format → Conditional formatting → Custom formula and paste =WEEKDAY(A2,2)>5.

My weekend dates are stored as text — does this still work?

No — WEEKDAY needs real date values. Convert text dates first with DATEVALUE: =WEEKDAY(DATEVALUE(A2),2)>5, or fix the source by selecting the column and Data → Text to Columns → Finish to coerce text dates to real dates.

More on Conditional formatting

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: