1. Home
  2. Functions
  3. Date and time
  4. WEEKDAY

WEEKDAY function

Returns the day of the week of a date as a number (by default 1 for Sunday to 7 for Saturday).

Syntax

=WEEKDAY(serial_number, [return_type])

Arguments

ArgumentRequiredDescription
serial_numberRequiredThe date
return_typeOptional1 (Sunday = 1), 2 (Monday = 1), 3 (Monday = 0) or 11 to 17 (week starting Monday to Sunday)

How to use WEEKDAY

WEEKDAY takes 1 required argument and 1 optional argument. Type =WEEKDAY( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=WEEKDAY(DATE(2008,2,14))Result 5
=WEEKDAY(DATE(2008,2,14), 2)Result 4
=WEEKDAY(DATE(2008,2,14), 3)Result 3

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.