ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 60 · Dates

WEEKDAY in Excel

WEEKDAY gives the day of the week as a number: 1 for Sunday through 7 for Saturday. With IF and OR, you can label each date as a weekend or a weekday.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Get the day of the week with WEEKDAY
  • Decide weekend or weekday with IF and OR

How it works

=WEEKDAY(A2) gives 1 for Sunday through 7 for Saturday.

Weekends are 1 and 7: =IF(OR(B2=1,B2=7),"Weekend","School day").

Formulas at a glance

=WEEKDAY(A2)1 = Sunday
=IF(OR(B2=1,B2=7),"Weekend","School day")The pattern to follow

Example

Write the formula to get the day number for the first date.

ABCDEF
1DateDay numberTypeParty dateDay number
23/14/20265/1/2026
33/16/20265/3/2026
43/20/20265/6/2026
53/22/20265/9/2026

Click B2 and type =WEEKDAY(A2), then press Enter.

The answer is 7.

When to use it

  • Marking weekend dates
  • Planning events on certain days
  • Counting sales by day of the week

Common mistakes

  • Thinking 1 is MondayBy default 1 is Sunday and 7 is Saturday.
  • Writing B2=1 or 7Use OR(B2=1,B2=7).
  • Wanting the day nameUse TEXT(A2,"dddd") for the name.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

WEEKDAY in Excel: how it works, with examples · ExcelUnpack