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
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.
Read it as: the month of the date in A2. For the full name, such as January, use "mmmm" in TEXT.
Practice this in ProExcel
Pull the month number out of each order date for a monthly report, in a real practice sheet.
ProExcel checks your answer the moment you press Enter.
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.
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)).