We want to use a format that will tell us the weekday of the date, whether it is a Monday, Tuesday etc.

Type a date into a cell of the spreadsheet. This can be any date you want post 01/01/1900. It can be the date you were born, date you were married, or the date the 2012 Olympics starts. For this example, I will use Christmas day 2001

- Select the cell where the date was entered
- Open the Format Cells dialogue box. In Excel 2003 click
**Format**>**Cells**, or in Excel 2007 click the dialogue box launcher arrow in the corner of the**Number**group of the Home tab. You could also press**Ctrl + 1** - Select the
**Number**tab, if necessary - Select
**Custom**from the**Category:**list - In the
**Type:**box, replace its contents with*dddd*

- Click
**Ok**

The weekday is now visible in the cell. Notice how the Formula Bar still displays the date as 25/12/2001. Formatting cells changes the values appearance, but the cell still contains the original value.

A user had a list of dates and she wanted to highlight each Saturday and Sunday in the list so that they would be instantly recognisable. It also creates and nice effect by splitting each week into blocks.

**Create the Conditional Formatting Rule**

- Select the cells containing the dates
- Click the
**Conditional Formatting**button on the**Home**tab - Click
**New Rule**in the list - Select
**Use a formula to determine which cells to format**from the top half of the window - In the
**Format values where this formula is true**box, enter the formula below

=OR(WEEKDAY(A2,2)=6,WEEKDAY(A2,2)=7)

- Click the
**Format**button and select the formatting you want to use to identify the weekend days - Click
**Ok**

**Understanding the Formula**

The OR function is used to test the two conditions and evaluate the answer to true or false. The two conditions are:

- Is this date a Saturday – WEEKDAY(A2,2)=6
- Is this date a Sunday – WEEKDAY(A2,2)=7

The Weekday function is used to return the number that represents the day of the week for a date. The Weekday function requires two items of information.

**Serial Number** – The date you want to return the day of the week for. Cell A2 was used in the formula above

**Return Type** – A number that determines what day of the week a week begins. Number 2 was used in the formula above to determine that a week begins on a Monday and ends on a Sunday. Therefore Saturday is the sixth day and Sunday is the seventh of the week.