ShareYourGroupShareYourGroupExcel Formulas

Date and time functions

WEEKDAY function in Excel

WEEKDAY returns the day of the week of a date as a number.

WEEKDAY tells you which day of the week a date falls on, as a number. With it you can mark weekends, total sales by day of the week, find the Monday of any week, or check whether a holiday lands on a Sunday.

Syntax

=WEEKDAY(serial_number, [return_type])
ArgumentWhat it is
serial_numberA date, or a cell that holds one.
return_typeWhich day counts as 1. Left out or 1: Sunday is 1 and Saturday is 7. With 2: Monday is 1 and Sunday is 7. With 3: Monday is 0 and Sunday is 6.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: Staff with their date of birth and date of joining, and a short list of holidays.
ABCD
1NameBornJoinedHoliday
2Anita19-Jul-198801-Apr-201926-Jan-2026
3Rohit30-Nov-199215-Jun-202004-Mar-2026
4Deepa29-Feb-199601-Sep-202115-Aug-2026
5Manoj05-Dec-199910-Jan-202202-Oct-2026

The numbering

The second argument decides which day is number 1. It is worth setting it every time, because the default surprises people.

return_typeSundayMondayTuesdayWednesdayThursdayFridaySaturday
1 or left out1234567
27123456
36012345

Return type 2 is the most convenient. Monday to Friday are 1 to 5, and the weekend is 6 and 7, so "is it a weekend?" becomes simply WEEKDAY(date,2)>5.

Types 11 to 17 start the week on other days: 11 is the same as 2, 12 starts on Tuesday, and so on up to 17, which starts on Sunday.

The name of the day

WEEKDAY gives a number. For a name, TEXT is the direct route: =TEXT(A2,"dddd") gives Monday, and "ddd" gives Mon. Or simply format the date cell itself with the custom format dddd.

Marking weekends

Totals by day of the week

Add a helper column with =WEEKDAY(A2,2) or =TEXT(A2,"ddd"), and total by it with SUMIF or a PivotTable. Shops use this to see which days are busiest. Without a helper column, SUMPRODUCT does it: =SUMPRODUCT((WEEKDAY(A2:A13,2)=6)*F2:F13) adds up Saturday sales.

Moving to a particular day

With return type 2, the weekday number is also "how many days into the week".

To getFormula
Monday of the same week=A2-WEEKDAY(A2,2)+1
Sunday at the end of the week=A2-WEEKDAY(A2,2)+7
The following Monday=A2+8-WEEKDAY(A2,2)
The previous Friday=A2-WEEKDAY(A2,2)-2

Grouping dates by "week starting" uses the first of these as a helper column.

Working days

To count working days between two dates, or to find the date a number of working days ahead, do not build it from WEEKDAY. NETWORKDAYS and WORKDAY are made for that, and they also accept a list of holidays.

Common mistakes

In Google Sheets

WEEKDAY is the same in Google Sheets, with return types 1, 2 and 3.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.