Skip to content

How to find the first day of a month

Excel & Google Sheets
=TEXT(DATE(A2,B2,1),"yyyy-mm-dd")

Verified example

Computed by a real spreadsheet engine on the sample data below.

YearMonthOriginal day
2026916

=TEXT(DATE(A2,B2,1),"yyyy-mm-dd")2026-09-01

Both expressions are checked against an independently calculated expected result in HyperFormula. This is a sample execution check, not native Excel or Google Sheets certification.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter the year and month in A2:B2. C2 shows the original day but is intentionally not used.
  2. 2DATE(A2,B2,1) constructs the first day of the chosen month.
  3. 3TEXT makes the example output readable as yyyy-mm-dd.
  4. 4For a real date already stored in D2, the equivalent numeric-date expression is =DATE(YEAR(D2),MONTH(D2),1).

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Does the original day matter?

No. The day argument is always 1.

Can this be used for grouping transactions by month?

Yes, use the numeric date expression as a month-start key, keeping the reporting timezone consistent.

Sources and compatibility

Reviewed 2026-09-16

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: