Skip to content

WEEKDAY

Returns the day of the week of a date as a number. You choose whether the week starts on Sunday or Monday.

Syntax

=WEEKDAY(, )

Date and time

All versions of Excel. The return types 11 to 17 need Excel 2010 or later.

Try it

Edit the formula in B2 or change the inputs. The sheet recalculates as you type.

B2
A
B
C
1
Date
Weekday number
2
Saturday 15-Mar-2025
7
3

B2 =WEEKDAY(A2) returns 7

How WEEKDAY works

WEEKDAY returns a number for the day of the week. With the default numbering, Sunday is 1 and Saturday is 7, so =WEEKDAY(DATE(2025,3,15)) returns 7, because 15 March 2025 was a Saturday. Use it to flag weekends, build schedules, and find the next occurrence of a given day.

Choosing the numbering

The return_type argument decides what the numbers mean. The default, 1, starts the week on Sunday. The most useful alternative is 2, where Monday is 1 and Sunday is 7, which matches how business weeks are usually described. Weekend tests are then easy: WEEKDAY(A2,2)>5 is TRUE for Saturday and Sunday. Type 3 numbers Monday as 0 and Sunday as 6, useful for adding offsets from Monday. The types 11 to 17 start the week on a day of your choice and number it 1 to 7.

| return_type | Week starts | Saturday returns | |---|---|---| | 1 (default) | Sunday = 1 | 7 | | 2 | Monday = 1 | 6 | | 3 | Monday = 0 | 5 | | 11 | Monday = 1 | 6 | | 16 | Saturday = 1 | 1 |

Day names

WEEKDAY gives a number. To display a name, use TEXT: =TEXT(A2,"dddd") returns Saturday and =TEXT(A2,"ddd") returns Sat. A custom number format of dddd also shows the name while keeping the date in the cell. To look a name up from a number, use CHOOSE: =CHOOSE(WEEKDAY(A2,2),"Mon","Tue","Wed","Thu","Fri","Sat","Sun").

Useful patterns

  • Weekend or weekday: =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday").
  • Next Monday after a date: =A2+8-WEEKDAY(A2,2). It returns the following Monday even when A2 is a Monday.
  • Monday of the current week: =A2-WEEKDAY(A2,2)+1.
  • Count one weekday in a range: =SUMPRODUCT(--(WEEKDAY(A2:A100,2)=1)) counts Mondays.
  • Friday payroll date in a month: use WORKDAY or filter on WEEKDAY(date,2)=5.

WEEKDAY and working days

WEEKDAY tests one date at a time. To count working days between dates, or to add working days, use NETWORKDAYS and WORKDAY. They know about weekends and holidays and are shorter than a WEEKDAY test over a range.

The time part of a date-and-time value is ignored.

Arguments

serial_number
The date to read: a cell holding a date, a date built with DATE, or text Excel can read as a date.
return_typeoptional
How to number the days. 1 or omitted: Sunday is 1 and Saturday is 7. 2: Monday is 1 and Sunday is 7. 3: Monday is 0 and Sunday is 6. 11 to 17: the week starts on Monday (11), Tuesday (12) and so on to Sunday (17), and that day is 1.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Default numbering: Sunday is 1

B2 =WEEKDAY(A2)

Result: 7

15 March 2025 is a Saturday. With the default return type, Sunday is 1, so Saturday is 7.

B2
A
B
C
1
Date
Weekday number
2
Saturday 15-Mar-2025
7
3

B2 =WEEKDAY(A2) returns 7

Example 2

Monday-first numbering and a weekend flag

B2 =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")

Result: Weekend

With return type 2, Monday is 1 and Saturday is 6, so any value above 5 is a weekend day.

B2
A
B
C
1
Date
Type
2
Saturday 15-Mar-2025
Weekend
3

B2 =IF(WEEKDAY(A2,2)>5,"Weekend","Weekday") returns Weekend

Example 3

Next Monday after a date

B2 =A2+8-WEEKDAY(A2,2)

Result: 17-Mar-2025

Saturday is 6 with type 2, so adding 8 - 6 = 2 days gives Monday 17 March 2025. A Monday would give the Monday a week later.

B2
A
B
C
1
Date
Next Monday
2
15-Mar-2025
17-Mar-2025
3

B2 =A2+8-WEEKDAY(A2,2) returns 17-Mar-2025

Example 4

Count the Mondays in a list of dates

D2 =SUMPRODUCT(--(WEEKDAY(A2:A6,2)=1))

Result: 3

WEEKDAY runs on the whole range. Dates on 3, 10 and 17 March return 1, and the double minus turns the TRUE results into 1s for SUMPRODUCT to add.

D2
A
B
C
D
1
Delivery date
Mondays
2
Mon 03-Mar-2025
3
3
Wed 05-Mar-2025
4
Mon 10-Mar-2025
5
Fri 14-Mar-2025
6
Mon 17-Mar-2025
7

D2 =SUMPRODUCT(--(WEEKDAY(A2:A6,2)=1)) returns 3

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B2, return the day of the week as a number where Monday is 1 and Sunday is 7. Fill it down to B4.

Answer in B2, then it fills down to B4.

B2
A
B
C
D
E
1
Date
Weekday no. (Mon=1)
Type
2
Sat 15-Mar-2025
3
Sun 16-Mar-2025
4
Mon 17-Mar-2025
5

Common mistakes

  • The default numbering starts on Sunday. A test written as WEEKDAY(A2)>5 flags only Friday and Saturday. Use WEEKDAY(A2,2)>5 to flag Saturday and Sunday.
  • WEEKDAY returns a number, not a name. For the name, use TEXT(A2,"dddd").
  • Return types 11 to 17 aren't available in Excel 2007 or earlier. Use type 2 if the file needs to open there.
  • A blank cell returns 7 with the default numbering, because 0 January 1900 is treated as a Saturday. Guard blanks with an IF.
  • WEEKDAY doesn't know about holidays. For working-day logic use NETWORKDAYS or WORKDAY.

Questions people ask

How do I get the day name from a date in Excel?

Use `=TEXT(A2,"dddd")` for the full name or `"ddd"` for the short name. WEEKDAY returns only the number.

How do I check whether a date is a weekend?

Use `=WEEKDAY(A2,2)>5`. It is TRUE for Saturday and Sunday. Wrap it in IF to return text such as "Weekend".

Which return type should I use?

Type 2 for most business work: Monday is 1 and Sunday is 7, so weekdays are 1 to 5. Type 1 is the default and starts the week on Sunday.

How do I find the next Monday?

Use `=A2+8-WEEKDAY(A2,2)`. For the Monday on or after the date, use `=A2+MOD(1-WEEKDAY(A2,2),7)`.

Why does WEEKDAY give 7 for an empty cell?

An empty cell is read as the date 0, and Excel treats 0 January 1900 as a Saturday. Test for a blank first.

Learn WEEKDAY in a real sheet.

WEEKDAY is taught in Dates and financial modelling, lesson 3: Weekdays and day names. Each lesson is a short, graded exercise like the one above.