LAMBDA · Date and time
Week start LAMBDA
xl.week.start returns the Monday of the week containing a date. July 4, 2026 is a Saturday, so the week starts on Monday, June 29, 2026.
Syntax =xl.week.start(day)
=LAMBDA(day,
LET(
monday_index, WEEKDAY(day, 2),
day - monday_index + 1
)
)Arguments
| Name | Required | What to pass |
|---|---|---|
| day | Required | Any date. The week starts on Monday, the ISO convention, not Sunday. |
Examples
The week of Independence Day 2026
=xl.week.start(DATE(2026,7,4))Result Monday, June 29, 2026
| A | B | |
|---|---|---|
| 1 | Date | 7/4/2026 |
| 2 | Monday | 6/29/2026 |
xl.week.start returns the Monday on or before a date. July 4, 2026 is a Saturday, so that week began on Monday, June 29. A date that is already a Monday comes back unchanged.
The Monday start matches ISO weeks. A payroll week that starts on Sunday needs a different offset. This one does not.
Add it to the workbook
Copy the formula in the block above, including the line breaks. Choose Formulas, Name Manager, New. Set the name to xl.week.start, the scope to Workbook, and paste into Refers to. Excel Labs can do the same step: open the Advanced Formula Environment, add that name, and save it back to the workbook. A cell then calls =xl.week.start(...).
The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME? for LAMBDA even when it already has XLOOKUP, FILTER, or LET.
How it works
WEEKDAY with return type 2 numbers Monday as 1 through Sunday as 7. Subtract that index and add 1. Saturday is 6, so the date moves back five days. Sunday is 7 and moves back six days, which is the previous Monday.
Limits
The result is a date serial. Format it as a date. Time attached to the input is kept, because the subtraction is a whole number of days added to the original serial.