What is the MONTH function?
=MONTH(serial_number)MONTH returns only the month of a date as a number: an integer from 1 to 12.
Inside Excel a date is a serial number (January 1, 1900 is 1), so it is hard to calculate with the year, month and day directly. Taking them apart with YEAR, MONTH and DAY lets you test conditions or build other dates.
MONTH is the starting point for monthly totals and for working out quarters and fiscal periods. Many organizations start the fiscal year in April or July; shift the date back with EDATE first and the month and quarter numbers follow the fiscal calendar.
Arguments
- serial_number
- The date to take the month from: a cell with a date, the DATE function or the result of another date function.
MONTH examples
Example 1. Take the month from a date
=MONTH(A2)If A2 is 2026-05-04, the result is 5.
Example 2. With DATE
=DATE(YEAR(A2), MONTH(A2)+1, DAY(A2))Take the parts of A2 and add 1 to the month for the same day next month. If that day does not exist (as with January 31), it rolls into the following month; use EDATE for exactly one month later.
Example 3. Quarter number
=ROUNDUP(MONTH(A2)/3, 0)Calendar quarters. For a fiscal year that starts in April, use =ROUNDUP(MONTH(EDATE(A2,-3))/3, 0).
A2 MONTH Calendar quarter April start 2026-02-10 2 1 4 2026-05-04 5 2 1 2026-11-30 11 4 3 Example 4. Month name
=TEXT(A2, "mmm")For 2026-05-04 the result is "May". The result is text.
Common mistakes
Typing a date as text
A date typed as text in quotes, such as "2026-5-4", may be read differently or fail depending on the computer's date settings. Microsoft recommends using the DATE function or a cell with a date.
Seeing the result as a date
The result of MONTH is a plain number, not a date. If the result cell is formatted as a date, 5 shows up as an odd date; set the format to General or Number.
Merging the same month of different years
MONTH ignores the year, so May 2025 and May 2026 both give 5. Combine it with YEAR when the data spans years.
FAQ
- Can MONTH take a text date?
- Text Excel recognizes as a date, such as "2026-05-04", usually works, but it can depend on the computer's settings. A date cell or the DATE function is safer.
- How do I get the day of the week?
- Use WEEKDAY for a number, or TEXT(A2,"ddd") for the name.
- How many entries fall in May?
- =SUMPRODUCT(--(MONTH(A2:A100)=5)). Blank cells count as January, so keep them out of the range.