Excel Tutorial
Excel tutorials, quizzes & AI guides — all levels
RSS
  • Online Excel Exercises
  • Training
  • Excel Tests
  • Sitemap
  • Premium Quizzes
  • Shop
  • My account

Change the Color of Weekends in Excel 🗓️🎨

Conditional Formatting - Date
Reading time: 2 minutes
Views: 49,894

How to Change the Color of Weekends with Conditional Formatting in 5 Simple Steps

  1. Create a test for the weekend days: Use the WEEKDAY function to check if a day falls on a weekend.
  2. Open Conditional Formatting: Go to Conditional Formatting > New Rule in the menu.
  3. Select a custom formula: In the dialog, choose Use a formula to determine which cell to format.
  4. Enter the formula: Type =WEEKDAY(B1, 2)>5 to highlight weekends (Saturday and Sunday).
  5. Choose a color for weekends: Click Format, select Fill, pick a color, and confirm with OK.

Automatic Calendar

Here is a calendar showing how to color weekends. Each day in row 1 uses the DATE function to create a date according to the date in A1.

Automatic Calendar where each day is a formula

Step 1: Set Up the WEEKDAY Test

Use WEEKDAY function to identify weekends (1 for Sunday, 2 for Monday).

Test to find the weekends

Step 2: Add Conditional Formatting Rule

In Conditional Formatting, select Use a formula to determine which cell to format.

Menu to create a custom conditional formatting rule

Step 3: Apply the Formula

Enter =WEEKDAY(B$1, 2)>5 in the text box to highlight weekends.

Copy the logical test in the textbox to change the color of weekends

Step 4: Set Your Custom Color

Then, to change the weekend’s color, you must set a color only with the test of the formula that will return TRUE.

  1. Click Format and choose a color for weekends.
  2. Go to Fill tab
  3. Pick a color for the weekends and click OK.
Select the color to apply to weekends

Step 5: Apply to a Range of Cells

In Conditional Formatting> Manage Rules, extend the rule to cover the whole range.

All weekends have a specific color different of the other days of the week

Change the Color of Public Holidays

Highlight public holidays with the COUNTIF function, as explained here.

Change the color of weekends and public holidays

  • Highlight Date Outside the Deadline
  • Calculate Public holidays with Excel 📆
  • Identifying Weekdays and Weekends with Excel
  • Use 2 Different Highlight Colors in Excel
  • Automatically Highlight Birthdays
  • How to Highlight Min and Max values in Excel

Frédéric LE GUEN

Change color, Change color date, Conditional formatting, COUNTIF, Date in Excel, WEEKDAY, weekends

1 Comment

  1. Trudy
    17/04/2019 @ 17:27

    please help me. I have been working on this for 4 hours. I need to know how to write formula to highlight current month and next month in yellow, and highlight a month or any month that is out of date for the month in red. i am tracking upcoming license plate renewals. I want a two month warning and any month past due in red. I prefer to use an icon but a cell highlight is fine.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed Posts

  • Displaying Negative Numbers in Parentheses in Excel (310,065)
  • Top 10 Excel Functions You Must Know (232,001)
  • How to make automatic calendar in Excel (212,775)
  • Dash for a zero in Excel automatically (190,813)
  • Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel (171,034)
image excel exercises
Excel Exercises
image excel quizzes
Excel Quizzes

Change the Color of Weekends in Excel 🗓️🎨

Reading time: 2 minutes
Views: 49,894

How to Change the Color of Weekends with Conditional Formatting in 5 Simple Steps

  1. Create a test for the weekend days: Use the WEEKDAY function to check if a day falls on a weekend.
  2. Open Conditional Formatting: Go to Conditional Formatting > New Rule in the menu.
  3. Select a custom formula: In the dialog, choose Use a formula to determine which cell to format.
  4. Enter the formula: Type =WEEKDAY(B1, 2)>5 to highlight weekends (Saturday and Sunday).
  5. Choose a color for weekends: Click Format, select Fill, pick a color, and confirm with OK.

Automatic Calendar

Here is a calendar showing how to color weekends. Each day in row 1 uses the DATE function to create a date according to the date in A1.

Automatic Calendar where each day is a formula

Step 1: Set Up the WEEKDAY Test

Use WEEKDAY function to identify weekends (1 for Sunday, 2 for Monday).

Test to find the weekends

Step 2: Add Conditional Formatting Rule

In Conditional Formatting, select Use a formula to determine which cell to format.

Menu to create a custom conditional formatting rule

Step 3: Apply the Formula

Enter =WEEKDAY(B$1, 2)>5 in the text box to highlight weekends.

Copy the logical test in the textbox to change the color of weekends

Step 4: Set Your Custom Color

Then, to change the weekend’s color, you must set a color only with the test of the formula that will return TRUE.

  1. Click Format and choose a color for weekends.
  2. Go to Fill tab
  3. Pick a color for the weekends and click OK.
Select the color to apply to weekends

Step 5: Apply to a Range of Cells

In Conditional Formatting> Manage Rules, extend the rule to cover the whole range.

All weekends have a specific color different of the other days of the week

Change the Color of Public Holidays

Highlight public holidays with the COUNTIF function, as explained here.

Change the color of weekends and public holidays

  • Highlight Date Outside the Deadline
  • Calculate Public holidays with Excel 📆
  • Identifying Weekdays and Weekends with Excel
  • Use 2 Different Highlight Colors in Excel
  • Automatically Highlight Birthdays
  • How to Highlight Min and Max values in Excel
Tags: Change colorChange color dateConditional formattingCOUNTIFDate in ExcelWEEKDAYweekends

Frédéric LE GUEN

1 Comment

  1. Trudy
    17/04/2019 @ 17:27

    please help me. I have been working on this for 4 hours. I need to know how to write formula to highlight current month and next month in yellow, and highlight a month or any month that is out of date for the month in red. i am tracking upcoming license plate renewals. I want a two month warning and any month past due in red. I prefer to use an icon but a cell highlight is fine.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net