Date & time function

WEEKDAY function

Returns the day of the week of a date as a number, e.g. 1 = Sunday to 7 = Saturday (the numbering is adjustable).

Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

WEEKDAY(serial_number, [return_type])
ArgumentWhat it means
serial_numberRequiredThe date to check.
return_typeOptionalNumbering scheme: 1 or omitted = Sunday 1 … Saturday 7; 2 = Monday 1 … Sunday 7; 3 = Monday 0 … Sunday 6; 11–17 = weeks starting Monday (11) through Sunday (17), numbered 1–7.

Returns: A whole number for the day of the week.

How WEEKDAY works

WEEKDAY tells you which day of the week a date falls on, as a number. That is the key to rules like "no deliveries at weekends", "Monday stand-up", or "show only Fridays" — in formulas, filters and conditional formatting.

The tricky part is the numbering. By default Sunday is 1 and Saturday is 7 (the US convention). Most of the world starts the week on Monday, and return_type 2 does exactly that: Monday = 1 … Sunday = 7. With type 2, a simple test WEEKDAY(A2,2)>5 catches Saturdays and Sundays. If you just want the day's name, use TEXT(A2,"dddd") instead.

WEEKDAY also helps calculate dates: subtracting WEEKDAY(A2,3) from a date (type 3 numbers Monday as 0) returns the Monday of that week.

Examples

1Day number with the default numbering

B2fx=WEEKDAY(A2)
AB
1DateWeekday
22026-12-024

Result: 4

2 December 2026 is a Wednesday. With Sunday = 1, Wednesday is day 4.

2Monday-based numbering

B2fx=WEEKDAY(A2,2)
AB
1DateWeekday
22026-12-023

Result: 3

With return_type 2 Monday is 1, so Wednesday is 3.

3Flag weekend orders

B2fx=IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")
AB
1Order dateDay type
22026-12-05Weekend

Result: Weekend

5 Dec 2026 is a Saturday, which is 6 in the Monday-based scheme, so it is greater than 5.

4Date of next Monday

B2fx=A2+8-WEEKDAY(A2,2)
AB
1DateNext Monday
22026-12-022026-12-07

Result: 2026-12-07

WEEKDAY(A2,2) is 3 for a Wednesday; 2 Dec + 8 − 3 = 7 Dec 2026, the following Monday (cell formatted as yyyy-mm-dd). If A2 is already a Monday the formula returns the Monday a week later.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 17 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!return_type is not one of the valid codes (1, 2, 3, 11–17).Use 1, 2, 3 or 11–17.
#VALUE!The date is text Excel cannot interpret.Convert it with DATEVALUE.

Tips

  • Use return_type 2 by default in Europe — it makes weekend tests (>5) and week-start calculations much easier.
  • For the day name use TEXT(A2,"ddd") ("Wed") or "dddd" ("Wednesday").
  • To count weekdays in a range use NETWORKDAYS rather than looping over WEEKDAY.

Questions

Why does WEEKDAY say Monday is 2?

The default numbering starts on Sunday (Sunday = 1). Add a second argument of 2 to make Monday = 1.

How do I get the name of the day?

Use =TEXT(A2,"dddd"). WEEKDAY only returns a number.

Google Sheets

WEEKDAY also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

WEEKDAY in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechDENTÝDNE
DanishUGEDAG
DutchWEEKDAG
FinnishVIIKONPÄIVÄ
FrenchJOURSEM
GermanWOCHENTAG
HungarianHÉT.NAPJA
ItalianGIORNO.SETTIMANA
Norwegian (Bokmål)UKEDAG
PolishDZIEŃ.TYG
Portuguese (Brazil)DIA.DA.SEMANA
Portuguese (Portugal)DIA.SEMANA
RussianДЕНЬНЕД
SpanishDIASEM
SwedishVECKODAG
TurkishHAFTANINGÜNÜ

Recipes that use WEEKDAY