ID EN
#Date and time

MONTH

Excel Functions

Get month as a number (1-12) from a date

Syntax

EXCEL
=MONTH(date)

Arguments

Parameter Description
date A valid Excel date.

Return Value

A number between 1 and 12.

Details

The MONTH function extracts the month from a given date as a number between 1 and 12. For example, given the date "June 12, 2021", the MONTH function returns 6 for June. MONTH takes just one argument, serial_number, which must be a valid Excel date. The MONTH function returns a number. If you need a month's name, use the TEXT function as shown below. The MONTH function "resets" every 12 months (like a calendar or clock). To work with month durations larger than 12, use a formula to calculate months between dates. MONTH takes just one argument, which must be a valid date or a text value that Excel can convert into a date. With the date March 15, 2026 in cell A1, all of these formulas will return 3: Dates can be supplied to the MONTH function as text (e.g., "13-Aug-2021") or as native Excel

Examples

Basic usage

MONTH takes just one argument, which must be a valid date or a text value that Excel can convert into a date. With the date March 15, 2026 in cell A1,

EXCEL
=MONTH(A1) // returns 3
=MONTH("15-Mar-2026") // returns 3
=MONTH(DATE(2026,3,15)) // returns 3
Get month from date

In the worksheet below, the goal is to extract the month number from dates. The formula in C5 is:

EXCEL
=MONTH(B5)
Get month name from date

One thing that confuses new users to Excel is how to get the month name with the MONTH function. Short answer: you can't. The MONTH function returns a

EXCEL
=TEXT(B5,"mmmm")
Get quarter from date

The MONTH function can be combined with the ROUNDUP function to calculate the quarter (1, 2, 3, or 4) for any date. In the worksheet below, the goal i

EXCEL
=ROUNDUP(MONTH(B5)/3,0)
Get quarter from date

This formula works by dividing the month number by 3, then rounding up to the nearest integer. For example, January is month 1, and 1/3 = 0.33, which

EXCEL
="Q"&ROUNDUP(MONTH(B5)/3,0)
Get last day of month

The easiest way to get the last day of a month is with the EOMONTH function. However, you can also use MONTH with DATE to achieve the same result. In

EXCEL
=DATE(YEAR(B5),MONTH(B5)+1,0)

See Also

YEAR DAY DATE EOMONTH