WEEKDAY in Excel returns a day number
WEEKDAY returns a day number, not a name. =WEEKDAY(DATE(2008,2,14)) returns 5, because 14 February 2008 was a Thursday and the default counts Sunday as 1. =WEEKDAY(DATE(2008,2,14),2) returns 4, because type 2 counts Monday as 1.
=WEEKDAY(serial_number, [return_type])The WEEKDAY formula in Excel is =WEEKDAY(serial_number, [return_type]). It returns an integer for the day of the week. The date must be a real Excel date, usually built with DATE or stored in a cell, not text that Excel cannot read. With return_type omitted, Sunday is 1 and Saturday is 7. =WEEKDAY(DATE(2008,2,14)) returns 5, and 14 February 2008 was a Thursday. Type 2 numbers Monday as 1 through Sunday as 7, so =WEEKDAY(DATE(2008,2,14),2) returns 4. Type 3 numbers Monday as 0 through Sunday as 6, so the same date returns 3. Types 11 to 17 also use 1 to 7, each starting on a different day. Type 11 matches type 2. Those codes need Excel 2010 or later. Excel 2007 accepts only 1, 2, and 3. A blank cell is treated as serial 0. =WEEKDAY of a blank returns 7 with the default type, which is Saturday, and it does not raise an error. A date with a time uses only the whole-day part. French Excel names the function JOURSEM and separates arguments with a semicolon.
Syntax & Parameters
The syntax is =WEEKDAY(serial_number, [return_type]). serial_number is required. Pass a date serial, a cell that contains a date, or DATE(year, month, day). Text that Excel cannot convert to a date returns #VALUE!. return_type is optional. Type 1, or omitted: 1 is Sunday and 7 is Saturday. Type 2: 1 is Monday and 7 is Sunday. Type 3: 0 is Monday and 6 is Sunday. Type 11 is the same numbering as type 2. Types 12 to 17 shift the day that is numbered 1: 12 starts on Tuesday, 13 on Wednesday, 14 on Thursday, 15 on Friday, 16 on Saturday, and 17 on Sunday. A return_type outside this list returns #NUM!. A negative serial also returns #NUM!. =WEEKDAY(DATE(2026,11,2)) returns 2, because 2 November 2026 is a Monday and Sunday is 1. =WEEKDAY(DATE(2026,11,2),2) returns 1. =WEEKDAY(DATE(2026,11,2),3) returns 0.
serial_numberreturn_typePractical Examples
Thursday with the default numbering
=WEEKDAY(DATE(2008,2,14))14 February 2008 was a Thursday. With Sunday as 1, Monday is 2, Tuesday is 3, Wednesday is 4, and Thursday is 5.
Monday as 1
=WEEKDAY(DATE(2026,11,2),2)Return type 2 counts Monday as 1 and Sunday as 7. The same date with the default type returns 2, and with type 3 it returns 0.
Flag a weekend when Monday is 1
=IF(WEEKDAY(DATE(2024,1,13),2)>=6,"Weekend","Weekday")The test >=6 is Saturday or Sunday for type 1 and for type 2. It is not the right test for type 3, where Saturday is 5 and Sunday is 6. Replace the date with DATE(2024,1,15) and the result is Weekday.
Key Takeaways
- =WEEKDAY(DATE(2008,2,14)) returns 5, a Thursday with Sunday as 1.
- =WEEKDAY(DATE(2008,2,14),2) returns 4, because type 2 counts Monday as 1.
- Type 3 counts Monday as 0. Types 11 to 17 need Excel 2010 or later, and type 11 matches type 2.
- A blank cell returns 7 with the default type. It is not an error.
- WEEKDAY returns a number. =TEXT(A2,"dddd") returns the day name in English Excel.
Pro Tips
Pick one return type and use it in every formula in the workbook. Type 2 is the usual choice when Monday should be 1.
Impact : A weekend test written for type 2 stays correct when you copy it, because Saturday stays 6 and Sunday stays 7.
Test a blank date before you use it. =IF(A2="","",WEEKDAY(A2,2)) leaves the result empty until a date is entered.
Impact : You avoid treating an empty cell as Saturday.
For the day name in English Excel, prefer =TEXT(A2,"dddd") over a long CHOOSE list.
Impact : The format code follows the workbook language, and you do not have to keep the list aligned with return_type.
Useful Combinations
Turn the default number into a name
=CHOOSE(WEEKDAY(DATE(2008,2,14)),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")WEEKDAY returns 5 for that Thursday when Sunday is 1. CHOOSE picks the fifth label, Thursday. This list is wrong for return type 2, which would need Monday first.
Add amounts that fall on Monday
=SUMPRODUCT((WEEKDAY(A2:A4,2)=1)*(B2:B4))SUMIF needs a range in its first argument, so SUMIF(WEEKDAY(...),1,B2:B4) returns #VALUE!. SUMPRODUCT can test the day numbers. With type 2, Monday is 1. If A2:A4 are 2 Nov 2026, 3 Nov 2026, and 9 Nov 2026, and B2:B4 are 10, 20, and 30, the two Mondays sum to 40.
Common Errors
Cause: serial_number is text Excel cannot read as a date, such as "32/13/2024", or return_type is text that is not a number.
Solution: Build the date with DATE(year, month, day), or enter a real date in the cell. Pass a numeric return type, not a word.
Cause: return_type is not 1, 2, 3, or 11 through 17. A negative serial, from a blank cell minus 1, also returns #NUM!. In Excel 2007, types 11 to 17 return #NUM!.
Solution: Use 1, 2, or 3 in Excel 2007. Use 11 to 17 only in Excel 2010 or later. Do not subtract from a blank date cell.
Cause: CHOOSE is used with return type 3. Monday is 0, and CHOOSE has no index 0.
Solution: Use return type 1 or 2 with CHOOSE, and start the list on the day that is numbered 1. For a name without CHOOSE, use =TEXT(A2,"dddd").
Troubleshooting Checklist
- 1.Confirm the cell is a date, not text. DATE(year, month, day) removes the ambiguity.
- 2.Check return_type: 1, 2, 3, or 11 to 17. Anything else is #NUM!.
- 3.In Excel 2007, use only 1, 2, or 3. Types 11 to 17 need Excel 2010 or later.
- 4.Do not use type 3 inside CHOOSE. Monday is 0, and CHOOSE returns #VALUE!.
- 5.A blank cell returns 7 with the default type. Test for blank before you flag a weekend.
Edge Cases
The date cell is blank
Behavior: Excel uses serial 0. With return type 1, WEEKDAY returns 7, Saturday. No error is shown.
Solution: Guard the call: =IF(A2="","",WEEKDAY(A2,2)).
=WEEKDAY(A2-1) on a blank cell calculates -1 and returns #NUM!.
The cell contains a date and a time
Behavior: WEEKDAY uses the integer serial and ignores the time fraction. A timestamp on 2 November 2026 still returns 2 with the default type.
Solution: No extra INT is required for the day number.
INT(A2) is useful when you need the date serial itself, not the weekday.
1 January 1900, which is serial 1 in the 1900 date system
Behavior: Excel treats serial 1 as Sunday, so =WEEKDAY(1) returns 1. The historical weekday was Monday. Excel also treats 1900 as a leap year, so weekdays before 1 March 1900 are one day off the real calendar.
Solution: For dates from 1 March 1900 onward, the weekday matches the calendar.
This is the Excel 1900 date system, not a WEEKDAY-only quirk.
Limitations
- •WEEKDAY returns a number from the chosen return type. It does not return Sunday, Monday, or any other name.
- •It does not know public holidays. WORKDAY can skip a holiday range. WEEKDAY only classifies the date you pass.
- •Return types 11 to 17 are absent from Excel 2007. Using one there returns #NUM!.
Alternatives
Compatibility
✓ Excel
Since Excel 2007
=WEEKDAY(serial_number, [return_type]). Types 1, 2, and 3 work from Excel 2007. Types 11 to 17 need Excel 2010 or later.✓Google Sheets
=WEEKDAY(date, [type])The type codes match Excel, including 11 to 17. In a French locale the name is JOURSEM and the argument separator is a semicolon.
✓LibreOffice
=WEEKDAY(serial_number, [return_type]). A French interface uses JOURSEM.