LAMBDA · Date and time

Month start LAMBDA

xl.month.start returns the first of the month. July 4, 2026 becomes July 1, 2026.

Microsoft 365, Excel 2024, and Excel for the web. Excel 2021 does not have LAMBDA.

Syntax =xl.month.start(day)

xl.month.start
=LAMBDA(day,
  LET(
    y, YEAR(day),
    m, MONTH(day),
    DATE(y, m, 1)
  )
)

Arguments

NameRequiredWhat to pass
dayRequiredAny date. The day of the month is discarded.

Examples

Independence Day 2026

=xl.month.start(DATE(2026,7,4))

Result July 1, 2026

=DATE(YEAR(B1),MONTH(B1),1)B2
Month
AB
1Date7/4/2026
2First of month7/1/2026
A picture of the sheet, not a live calculator.

xl.month.start is the first of the month for any date in that month. July 4, 2026 becomes July 1, 2026. Pair it with EOMONTH when a report needs both edges.

The time of day is dropped, because DATE builds a pure date.

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.month.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.month.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

YEAR and MONTH read the date. DATE rebuilds it with day 1. That is the whole function. The name exists so a sheet does not repeat the three-function nest, and so the intent is visible.

Limits

A fiscal month that does not start on the first calendar day is a different rule. This one is the calendar month.