formulastreak

Dates function

WEEKDAY function in Google Sheets and Excel

WEEKDAY turns a date into the number of its day of the week, numbered the way you choose.

Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet

Syntax

WEEKDAY(serial_number, [return_type])

Arguments in [brackets] are optional. Google Sheets writes it WEEKDAY(date, [type]).

Example

=WEEKDAY(D2,2) reads: Return the day number of the due date in D2, counting Monday as 1 and Sunday as 7 (return type 2).

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 3
ABCDEFGH
1TaskOwnerStartDueHoursDue day no.Holidays
2Kickoff workshopMara2 Mar 20264 Mar 2026633 Apr 2026
3Content auditJonas5 Mar 202620 Mar 2026246 Apr 2026
4WireframesPriya16 Mar 20262 Apr 2026401 May 2026
5Visual designElif30 Mar 202617 Apr 202656
6CopywritingTomás1 Apr 202624 Apr 202632
7BuildKenji13 Apr 202615 May 2026120
8TestingSofia11 May 202622 May 202630
9LaunchLeo26 May 202627 May 20268

F2 shows 3: 4 March 2026, the kickoff's due date, is a Wednesday.

How the spreadsheet calculates it

Gives the day of the week of D2 as a number (Monday = 1 … Sunday = 7).

  1. 1. WEEKDAY: Gives the day of the week of D2 as a number (Monday = 1 … Sunday = 7).
    • date = `D2`: the date to check
    • 2 = `2`: the numbering

More WEEKDAY examples

  • =WEEKDAY(D2)Sunday = 1 numbering: 4 for a Wednesday.
  • =IF(WEEKDAY(D2,2)>5,"Weekend","Weekday")A label for weekend due dates.
  • =D2-WEEKDAY(D2,3)The Monday of the due date's week.
  • =SUMPRODUCT(--(WEEKDAY(D2:D9,2)=5))How many tasks are due on a Friday.

Paste any of these into the formula explainer to see it step by step.

Tips

  • Always give return_type 2 when Monday starts your week; it makes weekend tests a simple >5.
  • Use type 3 to step back to Monday: date-WEEKDAY(date,3).
  • Format the result as a number, not a date.

What WEEKDAY is used for

Flagging weekend dates in schedules and timesheets, weekend pay rules, grouping sales by day of the week, and finding the start of a week for weekly reports.

Arguments

ArgumentRequiredWhat it is
serial_numberYesThe date to check.
return_typeNoHow days are numbered: 1 or left out is Sunday = 1 to Saturday = 7; 2 is Monday = 1 to Sunday = 7; 3 is Monday = 0 to Sunday = 6. Excel also has 11 to 17, which pick the first day of the week.Watch out: A number outside the listed types gives #NUM!.

Common mistakes

  • Leaving out the 2 and treating 1 as Monday: it's Sunday.

  • Testing for weekends with >5 while return_type is left out: then 6 is Friday and 7 Saturday, and Sundays are 1.

  • Expecting a name like Wednesday: WEEKDAY gives a number. TEXT(D2,"dddd") gives the name.

In Google Sheets

Google Sheets has WEEKDAY(date, [type]). Google's help documents types 1, 2 and 3, numbered as in Excel; Excel's extra types 11 to 17 aren't in Google's list, so stick to 1, 2 or 3 in shared files.

Errors you may see with WEEKDAY

  • #NUM!: return_type is a number the function doesn't accept.
  • #VALUE!: The date is text the app can't read as a date.

Questions

How do I check if a date is a weekend?

WEEKDAY(D2,2)>5: with type 2, Saturday is 6 and Sunday 7. Wrap it in IF for a label: IF(WEEKDAY(D2,2)>5,"Weekend","Weekday").

How do I get the day name?

Use TEXT with "dddd" for the full name or "ddd" for the short one. WEEKDAY is for calculations; TEXT is for labels.

How do I find the Monday of a date's week?

Subtract the days since Monday: D2-WEEKDAY(D2,3) (type 3 counts Monday as 0). For 4 March 2026, a Wednesday, that's 2 March.

Sources

Official documentation the facts on this page were checked against.

Practise WEEKDAY on a live sheet

Lesson 28, Weekdays and working days (Unit 7, Dates and time maths), has 5 graded exercises, checked instantly, with steps and hints when you're stuck. Pro