What WEEKDAY does
WEEKDAY returns the day of the week of a date as a number. With return type 2, =WEEKDAY(A2,2) gives 1 for a Monday up to 7 for a Sunday, so =WEEKDAY(A2,2)>5 is TRUE on Saturdays and Sundays. Leave the return type out and Excel counts from Sunday as 1.
The second argument changes the numbering. With the default, the weekend sits at both ends of the week, Sunday at 1 and Saturday at 7, so a single “greater than” test can’t catch both. Return type 2 puts Saturday and Sunday last, at 6 and 7, and makes tests for weekends and working days short.
The result is a number to test and calculate with, such as a weekend rate or a check for deliveries on a Sunday. For the name of the day, such as Monday, use TEXT.
Syntax
serial_numberRequired- The date, such as a shift date in
A2. Text that Excel can't read as a date gives#VALUE!. return_typeOptional- How the days are numbered. Left out or
1: Sunday is 1 and Saturday is 7.2: Monday is 1 and Sunday is 7.3: Monday is 0 and Sunday is 6. The codes 11 to 17 start the week on other days.
Example: the same week, numbered two ways
The dates run from Monday, Nov 30, 2026 to Sunday, Dec 6, 2026. Column C uses the default numbering and column D uses return type 2.
Return type 3 counts the same way as 2, one lower, from Monday as 0 to Sunday as 6.
Practice this in ProExcel
Flag the deliveries that arrived on a Saturday or a Sunday, in a real practice sheet.
ProExcel checks your answer the moment you press Enter.
Example: pay weekend shifts at time and a half
In this company, hours worked on a Saturday or a Sunday are paid at one and a half times the hourly rate in B7.
Read it as: if the day number is above 5, pay the hours at 1.5 times the rate, otherwise at the rate. For a Monday-to-Friday test, turn it around: WEEKDAY(A2,2)<6 is TRUE on working days.
Get the day name instead of a number
WEEKDAY only returns numbers. For the name, give the date to TEXT with a day code: =TEXT(A2,"dddd") gives the full name, such as Monday, and =TEXT(A2,"ddd") the short one, Mon. To show the name in the date cell itself, keep the date and give the cell the custom number format dddd.
Common mistakes
=WEEKDAY(A2)>5uses the default numbering, where Friday is 6 and Saturday 7, so it flags Fridays and Saturdays and misses Sundays. Add the return type:=WEEKDAY(A2,2)>5.=WEEKDAY(A2)="Saturday"is always FALSE, because WEEKDAY returns a number. Compare with the number, or withTEXT(A2,"dddd").=WEEKDAY(A2,4)returns#NUM!. The return types are 1, 2 and 3, and 11 to 17.- A date stored as text that Excel can’t read gives
#VALUE!. Retype it as a real date, or build it with DATE.
Frequently asked questions
How do I get the day of the week from a date in Excel?
For the name, use =TEXT(A2,"dddd"), which gives Monday, Tuesday and so on. For a number to calculate with, use =WEEKDAY(A2,2), which gives 1 for Monday to 7 for Sunday.
How do I make WEEKDAY start on Monday?
Give it return type 2: =WEEKDAY(A2,2) numbers Monday as 1 and Sunday as 7. Return type 3 also starts on Monday, but from 0.
How do I check if a date is a weekend?
=WEEKDAY(A2,2)>5 is TRUE for Saturdays and Sundays. =WEEKDAY(A2,2)<6 is TRUE from Monday to Friday.
How do I count the weekend dates in a list?
Test every date at once inside SUMPRODUCT: =SUMPRODUCT(--(WEEKDAY(A2:A50,2)>5)) counts the dates in A2:A50 that fall on a Saturday or a Sunday.
Why does WEEKDAY return the wrong day?
Usually the return type: without one, Sunday is 1, so Monday comes out as 2. If the number is still wrong, look at the date itself with =TEXT(A2,"dddd"), since a date typed in the wrong order, such as day and month swapped, gives a different weekday.