ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. How to Highlight Weekends in Excel

How to Highlight Weekends in Excel

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

To highlight weekends in Excel, select the dates, go to Home > Conditional Formatting > New Rule, choose Use a formula, and enter =WEEKDAY(A2,2)>5. With return type 2, Monday is 1 and Sunday is 7, so values above 5 are Saturday and Sunday. Pick a fill colour and click OK. Add AND(A2<>"",...) so empty cells aren't coloured.

Key takeaways

  • The rule formula is =WEEKDAY(A2,2)>5, written for the first cell of the selection.
  • WEEKDAY with return type 2 numbers Monday as 1 and Sunday as 7.
  • Lock the column with $A2 to colour whole rows; lock the row with B$1 for calendars across columns.
  • Empty cells count as a Saturday, so add A2<>"" to the rule.
  • Add COUNTIF(holidays,A2)>0 with OR to highlight holidays too.
On this page+
  1. How does the weekend formula work?
  2. How to highlight weekend dates step by step
  3. How to stop blank cells being highlighted
  4. How to highlight the whole row for weekend dates
  5. How to highlight weekends in a calendar across columns
  6. How to highlight holidays as well
  7. What if your weekend isn't Saturday and Sunday?
  8. How to edit or remove a weekend rule
  9. Practise it

To highlight weekends in Excel, use a conditional formatting rule with the formula =WEEKDAY(A2,2)>5. It colours every Saturday and Sunday, and the colours move by themselves when dates change. This guide shows the rule step by step, then how to colour whole rows, calendars laid out across columns, holidays, and how to stop blank cells lighting up.

How does the weekend formula work?#

The rule uses WEEKDAY, which returns a number for the day of the week. Its second argument, the return type, sets how the days are numbered. Return type 2 is the easiest for weekends:

DayWEEKDAY(date,2)Weekend?
Monday1No
Tuesday2No
Wednesday3No
Thursday4No
Friday5No
Saturday6Yes
Sunday7Yes

So WEEKDAY(A2,2)>5 is TRUE only for Saturday and Sunday. Conditional formatting applies your colour wherever the formula returns TRUE. The article on how the WEEKDAY function works explains the other return types.

How to highlight weekend dates step by step#

Here is the full process for a column of dates in A2:A20:

  1. Select A2:A20, starting from A2.
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose Use a formula to determine which cells to format.
  4. In the box, type =WEEKDAY(A2,2)>5.
  5. Click Format, choose a fill colour on the Fill tab, and click OK twice.

Every Saturday and Sunday in the list is now coloured. Change a date and the colour updates.

The formula is written for the first cell of the selection, A2. Excel then adjusts it for each other cell, just like filling a formula down. If you select from A1 but type A2 in the rule, every colour lands one row off. This is the most common mistake with formula rules. The guide to conditional formatting basics covers how these rules work in general.

How to stop blank cells being highlighted#

Add a check that the cell isn't empty. Excel treats a blank cell as 0, and day 0 of Excel's calendar is a Saturday. So the basic rule colours every empty cell too, which looks wrong when your list has space for more dates.

Use this rule instead:

Excel formula
=AND(A2<>"",WEEKDAY(A2,2)>5)

AND needs both tests to be TRUE: the cell has something in it, and the day is a weekend. Empty cells now stay uncoloured.

How to highlight the whole row for weekend dates#

Select the whole table and lock the date column with a dollar sign. For a shift table in A2:D20 with dates in column B:

Excel formula
=AND($B2<>"",WEEKDAY($B2,2)>5)

The $ before B keeps every cell looking at column B, while the row number still changes from row to row. So C5 and D5 both check B5. Without the $, column C would check the cell next to it and the colours would be wrong. The guide to highlighting a whole row based on one cell explains this pattern in detail.

How to highlight weekends in a calendar across columns#

When dates run across a row, lock the row instead of the column. Say a monthly timesheet has dates in B1:AF1 and staff names down column A. Select B1:AF10 and use:

Excel formula
=WEEKDAY(B$1,2)>5

Now every cell checks the date at the top of its column, so whole weekend columns are shaded from top to bottom. This makes rotas and attendance sheets much easier to read.

To build the dates themselves, type the first day of the month in B1 and fill right, or use =B1+1 in C1 and copy it across. For a new month, change only B1. If you want the dates to stop at the end of the month, EOMONTH helps; see EDATE and EOMONTH explained.

How to highlight holidays as well#

Put your holiday dates in a list, for example H2:H10, and add a COUNTIF test with OR:

Excel formula
=AND($A2<>"",OR(WEEKDAY($A2,2)>5,COUNTIF($H$2:$H$10,$A2)>0))

COUNTIF checks whether the date appears in the holiday list. If it does, or if the day is a weekend, the cell is coloured. Lock the holiday range fully with $H$2:$H$10 so it doesn't move.

You can also use a second rule with a different colour for holidays, so people can tell them apart from normal weekends.

What if your weekend isn't Saturday and Sunday?#

Change the test to match your days off. With WEEKDAY's default return type, Sunday is 1 and Saturday is 7, and Friday is 6. For a Friday and Saturday weekend:

Excel formula
=OR(WEEKDAY(A2)=6,WEEKDAY(A2)=7)

For a single day off, such as Sunday only, use =WEEKDAY(A2)=1.

The same tests work in normal cells too. For example, =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday") labels each date, and =SUMPRODUCT(--(WEEKDAY(B2:B8,2)>5)) counts weekend dates in a range. Once weekends are clear, you can colour other date problems the same way, such as overdue and upcoming dates.

How to edit or remove a weekend rule#

Open Home > Conditional Formatting > Manage Rules to see every rule on the sheet. Change Show formatting rules for to This Worksheet, or you'll only see rules for the cells you selected.

From here you can:

  • Edit Rule to fix the formula or change the colour.
  • Change Applies to when you add more rows, for example from =$A$2:$D$20 to =$A$2:$D$200.
  • Delete Rule to remove it completely.

If a rule seems to do nothing, check its Applies to range first. Rules that point at the wrong cells are a common cause of missing colours, especially after rows have been copied or moved.

Practise it#

Formula-based conditional formatting is a skill that separates confident Excel users from beginners in many job tests. Practise conditional formatting in a live spreadsheet, then practise WEEKDAY, EDATE and EOMONTH to get comfortable with the date functions behind the rules. Each lesson checks your work instantly. Or try the exercise on this page first.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Before you build the rule, check the test. How many shifts fall on a weekend? Click E2 and use SUMPRODUCT to count the dates in B2:B8 where WEEKDAY(B2:B8,2)>5.

fx
ABCDEF
1
Shift
Date
Staff
2
S-01
45730
Noor
Weekend shifts
3
S-02
45731
Ken
4
S-03
45733
Noor
5
S-04
45736
Ravi
6
S-05
45738
Ken
7
S-06
45739
Ravi
8
S-07
45741
Noor
9
10
11

Tip: WEEKDAY(B2:B8,2)>5 gives TRUE for Saturday and Sunday. The -- turns TRUE into 1, and SUMPRODUCT adds them up.

Practise this in a lesson

LessonConditional formattingMake important numbers stand out: highlight values over a limit, duplicate IDs and the top 3, then color whole rows with a formula rule and a $ on the column.LessonRenewals and month-ends: EDATE, EOMONTH, WEEKDAYShift dates by whole months with EDATE, jump to month-end with EOMONTH, and find the day of the week with WEEKDAY.

Frequently asked questions

How do I highlight weekends in Excel?

+

Select the dates, open Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, enter =WEEKDAY(A2,2)>5, pick a fill and click OK. Change A2 to the first cell of your selection.

Why are blank cells highlighted as weekends?

+

Excel treats an empty cell as 0, and day 0 of its calendar is a Saturday. Use =AND(A2<>"",WEEKDAY(A2,2)>5) so the rule only colours cells that hold a date.

How do I highlight the whole row for weekend dates?

+

Select the whole table, not just the date column, and lock the column in the rule: =WEEKDAY($A2,2)>5. Every cell in the row then checks the date in column A.

How do I highlight weekends if my weekend is Friday and Saturday?

+

Use WEEKDAY with its default return type and test for 6 and 7: =OR(WEEKDAY(A2)=6,WEEKDAY(A2)=7). With the default type, Friday is 6 and Saturday is 7.

Sources

  • Use conditional formatting to highlight information - Microsoft Support
  • WEEKDAY function - Microsoft Support
  • COUNTIF function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How does the weekend formula work?
  2. How to highlight weekend dates step by step
  3. How to stop blank cells being highlighted
  4. How to highlight the whole row for weekend dates
  5. How to highlight weekends in a calendar across columns
  6. How to highlight holidays as well
  7. What if your weekend isn't Saturday and Sunday?
  8. How to edit or remove a weekend rule
  9. Practise it

Keep reading

Dates· 5 min read

Highlight Overdue and Upcoming Dates in Excel

To highlight overdue dates in Excel, select the rows, go to Home > Conditional Formatting > New Rule, choose Use a formula, and enter =AND($C2<>"",$C2<TODAY()), where C holds the due dates. Pick a red fill. For dates due within the next 7 days, add a second rule: =AND($C2>=TODAY(),$C2<=TODAY()+7). The colours update every day.

Data tools· 6 min read

Find and Highlight Duplicates in Excel

To highlight duplicates in Excel, select the cells, go to Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values, and click OK. Every value that appears more than once turns red. To flag or count repeats with a formula instead, use COUNTIF: =COUNTIF($A$2:$A$9,A2)>1 is TRUE for a duplicate.

Data tools· 5 min read

Highlight an Entire Row Based on a Cell Value

To highlight a row based on a cell value, select the whole table without the header, such as A2:E9, then go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Type =$D2="Late", choose a fill colour. The $ locks column D, so each row checks its own status.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free