WEEKDAY Function
Return the day of the week of a date as a number. serial_number is the date. return_type selects the numbering: 1 numbers Sunday to Saturday as 1 to 7 (the default), 2 numbers Monday to Sunday as 1 to 7, 3 numbers Monday to Sunday as 0 to 6, and 11 to 17 start the week on Monday through Sunday as 1. Any other return_type returns #NUM!, and text that is not a date returns #VALUE!.
Syntax
WEEKDAY(serial_number, return_type)
Category: Date & Time. Minimum arguments: 1. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=WEEKDAY(DATE(2026,10,9),2)
The formula returns 5: October 9, 2026, is a Friday, the fifth day of a week that starts on Monday.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.