Change the Color of Weekends in Excel 🗓️🎨

Last Updated on 06/11/2024
Reading time: 2 minutes

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

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

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

Change the Color of Weekends in Excel 🗓️🎨

Reading time: 2 minutes
Last Updated on 06/11/2024

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

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

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