Gets the First day in a Month
Returns an Excel date representing the first day of the specified month and year. Useful for date range calculations.
Parameters
| Parameter | Description | Range |
|---|---|---|
| MonthValue | Month number | 1-12 |
| YearValue | Four-digit year | 2000+ |
Syntax
=FirstDayInMonth(MonthValue, YearValue)Parameters
monthValuenumberRequired
Month number (1-12)
yearValuenumberRequired
Year (e.g., 2024)
Returns
date
First day of the specified month
Examples
=FirstDayInMonth(1, 2024)=FirstDayInMonth(6, 2024)=FirstDayInMonth(A1, B1)When to Use
- Setting date ranges for analysis
- Building monthly reports
- Creating date-based filters
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Need quarter start | FirstDayInQuarter() |
| Need quarter end | LastDayInQuarter() |
Common Issues & FAQ
What format is the output?
Returns an Excel date serial number that displays as a date.
Excel Templates Using Gets the First day in a Month
These ready-made MarketXLS templates call FirstDayInMonth() in their worksheet formulas. Open one to see the function working inside a complete model.
Related Formulas
More MarketXLS Date Functions formulas you can use in the same worksheet:
