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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

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

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

More on Conditional formatting

See all →

Formulas used

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

Last reviewed: