SheetsLessons
Date & Time function

WEEKDAY function in Google Sheets

WEEKDAY returns the day of the week of a date as a number. By default Sunday is 1 and Saturday is 7, but the optional type argument lets you start the week on Monday, which makes weekend checks simpler.

Syntax

=WEEKDAY(date, [type])
date
The date to read.
type
Optional. 1 (default): Sunday = 1 to Saturday = 7. 2: Monday = 1 to Sunday = 7. 3: Monday = 0 to Sunday = 6.

Practice WEEKDAY

Task 1 of 1

Return the day of the week for the first shift as a number with Monday = 1 through Sunday = 7. Answer in C2.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

WEEKDAY examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1TaskStartDueHolidays
2Kickoff1/5/20261/9/20261/19/2026
3Design1/12/20262/13/20262/16/2026
4Build2/16/20264/30/20265/25/2026
5Launch5/4/20265/29/2026
Project schedule (column D lists public holidays)
FormulaResultWhat it shows
=WEEKDAY(B2)2January 5, 2026 is a Monday, which is 2 by default.
=WEEKDAY(B2, 2)1With type 2, Monday is 1.
=WEEKDAY(C2, 2)>5FALSEFALSE: the Kickoff is due on a Friday, not a weekend.
=TEXT(C2, "dddd")FridayFor the day's name, use TEXT.
=WEEKDAY(B2, 4)#NUM!Only types 1, 2 and 3 are accepted here.

Tips and common mistakes

  • With type 2, a weekend test is simply WEEKDAY(date, 2)>5.
  • To count working days between two dates, NETWORKDAYS is far simpler than adding up WEEKDAY checks.
  • Sheets also accepts types 11 to 17 to start the week on any day. This practice engine supports 1 to 3.

Related functions