Date & Timebeginner
Extract month and year from a date with MONTH and YEAR
=YEAR(A2)&"-"&TEXT(MONTH(A2),"00")
Worked examples (1)
These formulas work in Google Sheets with identical syntax.
Also in Excel
See the full MONTH reference for Excel — including all worked examples, common errors, and FAQ.
MONTH Excel reference →