Excel function

MONTHfunction

Returns the month (1–12) of a date as a number.

All versions
=MONTH(DATE(2026,5,4))

May 2026

Sun
Mon
Tue
Wed
Thu
Fri
Sat

Click a date on the calendar to change serial_number. Use the ◀ ▶ buttons to move a day at a time past the end of a month or year. Try breaking it on purpose to see the errors.

Result

5

serial_number
May 4, 2026 (Mon)

The date to take the month from. In a real sheet this is usually a cell with a date (A2 and so on).

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

  1. Example 1. Take the month from a date

    =MONTH(A2)

    If A2 is 2026-05-04, the result is 5.

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

  3. 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).

    A2MONTHCalendar quarterApril start
    2026-02-10214
    2026-05-04521
    2026-11-301143
  4. Example 4. Month name

    =TEXT(A2, "mmm")

    For 2026-05-04 the result is "May". The result is text.

Common mistakes

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.