What MONTH does

MONTH returns the month of a date as a number from 1 to 12, where 1 is January and 12 is December. If A2 holds Nov 30, 2026, =MONTH(A2) gives 11. Use it to test or total dates by month, such as for a seasonal price or a count of orders per month.

The result is a number, so it works in comparisons like MONTH(A2)>=6 and inside other formulas. MONTH ignores the year: Dec 2025 and Dec 2026 both give 12, so a list that covers several years needs YEAR as well.

For the month’s name, such as November, use TEXT with the code "mmmm".

Syntax

=MONTH(serial_number)
Every argument is required.
serial_numberRequired
The date to take the month from, such as a check-in date in A2. Text that Excel can't read as a date gives #VALUE!.

Example: the month as a number and as a name

An expense log needs the month as a number for its formulas and as a name for its labels.

MONTH gives a number to calculate with. TEXT with "mmm" gives the short name to show. In B2, =MONTH(A2) returns 1.

Read it as: the month of the date in A2. For the full name, such as January, use "mmmm" in TEXT.

Example: a summer rate from June to August

A hotel in Portugal charges its summer rate for check-ins from June through August, months 6 to 8, and its standard rate the rest of the year.

Only the July and August check-ins fall in months 6 to 8. May 28 and Sep 1 get the standard rate. In B2, =IF(AND(MONTH(A2)>=6,MONTH(A2)<=8),$B$7,$B$8) returns 95.

The year doesn’t matter here, so MONTH alone is enough: next summer’s bookings get the summer rate without any change to the formula.

Common mistakes

  • =TEXT(MONTH(A2),"mmmm") shows January for every date. TEXT reads the month number, such as 11, as a date, and day 11 of Excel’s calendar is in January 1900. Give TEXT the date itself: =TEXT(A2,"mmmm").
  • A total by MONTH alone mixes the years, so December 2025 and December 2026 land together. Test the year too, or group by a label such as =TEXT(A2,"yyyy-mm"), which gives 2026-12 and sorts in date order.
  • The result shows as a date, such as 11 Jan 1900, when the cell has a date format. Format it as General or Number.
  • An empty cell gives 1, as if it were in January, because Excel reads it as 0. Skip blanks with =IF(A2="","",MONTH(A2)).

Frequently asked questions

How do I get the month name from a date in Excel?

Use TEXT with a month code: =TEXT(A2,"mmmm") gives the full name, such as November, and =TEXT(A2,"mmm") the short one, Nov.

How do I get the month and year from a date?

For a label, use =TEXT(A2,"mmm yyyy"), which gives Mar 2026. To keep the date as a date and only show its month and year, give the cell the number format mmm yyyy instead.

How do I sum by month in Excel?

Use SUMIFS with the first and last day of the month. With the first day in E1: =SUMIFS(B2:B100,A2:A100,">="&E1,A2:A100,"<="&EOMONTH(E1,0)). Unlike a test on MONTH alone, it keeps each year’s months apart.

How do I get the quarter from a date?

Divide the month by 3 and round up: =ROUNDUP(MONTH(A2)/3,0) gives 1 for January to March and 4 for October to December.

Why does MONTH return 1 for an empty cell?

Excel reads an empty cell as 0, which falls in January 1900, so MONTH gives 1. Wrap it in IF to leave blanks blank: =IF(A2="","",MONTH(A2)).