MONTH Function in Microsoft Excel: Formula, Examples & Troubleshooting
Learn the MONTH formula in Microsoft Excel: extract the month number from a date, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: Use MONTH to extract the month number from a date. The example below supplies exact inputs and independently calculated expected results, so you can check your formula before replacing the demonstration values with real workbook data.
Verification: The function is covered by a vendor reference or its published formula catalogue. The worked outputs here are independently reasoned, not screenshots or native test results from Microsoft Excel. Check release-specific support and argument details in the referenced vendor help.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official MONTH reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=MONTH(serial_number)
Date serial or a valid date expression. In formula syntax, square brackets mark optional arguments; do not type square brackets into an ordinary formula unless the particular function requires array notation. The separator shown is for the example locale and might change with spreadsheet settings.
When to use it: Use TEXT with an appropriate date format if you need the display name.
Prepare the example inputs
Enter the self-contained DATE-based formulas in unused cells. Keep source dates as actual date values, and inspect the formula bar if the displayed answer differs. Display the extracted month result as General or a number; it is an integer component, not a date serial to format as a calendar date.
Worked example: exact formula and expected output
=MONTH(DATE(2026,10,11))
Expected result: 10. The October date has month number 10.
- Select an unused output cell (for example H2 if the practice table occupies A1:F9).
- Enter the formula exactly as shown, including the opening equals sign and quoted text.
- Compare the displayed answer to the expected result, then inspect the source cells if it differs.
For a range formula, the row numbers include data rows only unless the example explicitly refers to headers. A result that looks plausible may still be wrong if it references the wrong column.
Second example: a different input
=MONTH(DATE(2024,2,29))
Expected result: 2. Leap day falls in February.
This second check uses the same function with a different input, helping you identify whether the first result was coincidental or caused by a shifted reference.
MONTH returns the Gregorian month number
The result is an integer from 1 through 12, with January represented by one. Keep the result formatted as General or a number. A date format applied to the extracted integer would display a serial-date interpretation rather than the intended month number.
Microsoft specifies Gregorian YEAR, MONTH and DAY components regardless of the input’s calendar display format. The function does not return a translated month name or a fiscal period automatically.
Example: separate month identity from year identity
=MONTH(DATE(2025,10,1))
=MONTH(DATE(2026,10,31))
Both expected results are 10. That equality identifies the same month of the year, not the same calendar reporting period. Grouping a multi-year dataset by MONTH alone merges October records from different years.
For a stable year-and-month date key, use:
=DATE(YEAR(A2),MONTH(A2),1)
With A2 set to =DATE(2026,10,31), the expected key is 2026-10-01. Formatting that real date as a year-month label changes only its display. The year remains part of the underlying value.
Advanced example: calculate a calendar-quarter number
For a valid date in A2:
=INT((MONTH(A2)-1)/3)+1
Expected results for dates in January, March, April, June, October and December are 1, 1, 2, 2, 4 and 4. Subtracting one before division aligns months 1–3 with quarter one.
For October 11, 2026, the intermediate values are month 10, then 9/3=3, then quarter 4. This formula defines ordinary calendar quarters; it does not infer an organization’s fiscal schedule.
Advanced example: number fiscal months from July
For an explicitly July-start reporting year:
=MOD(MONTH(A2)-7,12)+1
A date in July maps to fiscal month 1, June to 12, and January to 7. For June, MOD(-1,12)=11 and adding one gives 12. The MOD convention handles the wrap.
Keep a separate fiscal-year label if the data spans several reporting years. A fiscal-month number by itself still loses the year, just as the ordinary month number does.
Advanced example: show why month subtraction is not elapsed months
=MONTH(DATE(2027,1,15))-MONTH(DATE(2026,12,15))
Expected result: -11. The two dates are one calendar month apart, but the expression subtracts their within-year labels. Crossing December resets the month number.
For this same-day, mid-month control, the explicit year-and-month offset is:
=(YEAR(DATE(2027,1,15))-YEAR(DATE(2026,12,15)))*12+MONTH(DATE(2027,1,15))-MONTH(DATE(2026,12,15))
Expected result: 1. That label-based offset still does not count completed months for arbitrary different day-of-month values. Use a separately specified duration or scheduling rule when days matter.
Advanced check: find a month boundary without parsing text
With A2 holding October 11, 2026, =DATE(YEAR(A2),MONTH(A2)+1,1) has expected result 2026-11-01. For December 11, 2026, it becomes 2027-01-01 through DATE’s documented month rollover.
Do not concatenate a month number into a slash-separated text string and assume every locale will interpret it identically. A constructed DATE value makes the components explicit and is easier to compare across workbooks.
Input and error boundaries
Use real date values. A number 10 stored in a cell is a possible date serial, not an instruction that the month is October; pass a DATE expression if October is intended. The source does not establish all malformed-string, blank and logical coercions or a complete native error table.
See YEAR for year labels, DAY for within-month positions and EOMONTH for the actual last date of an offset month.
Important edge cases and a common mistake
Watch out: MONTH returns a number 1–12, not the word October.
If this formula needs to work in older Excel releases, consult the Microsoft version markers first; the function’s presence in a Microsoft 365 workbook does not establish Excel 2013 support.
Troubleshooting in Microsoft Excel
Microsoft documents Formulas → Evaluate Formula for Excel for Windows. If that command is unavailable in your client, put the component expressions in separate helper cells and compare their results; also check whether numeric-looking source values are stored as text. #NAME? suggests a misspelling or an unavailable new function. #VALUE! often indicates a wrong argument type; #SPILL! on array functions often means output cells are occupied.
If you get the wrong answer but no error, try these checks in order: (1) evaluate the simplified first example; (2) confirm the cell values and data types; (3) check the exact row and column boundaries; (4) verify quoted text, comparison operators and separators; (5) only then add more criteria or nested functions.
For a reproducible comparison with another spreadsheet product, use the same input values in both applications and record the installed version and locale. Different default matching behavior or handling of empty values can be a migration issue rather than a mathematical disagreement.
Moving this formula between spreadsheet programs
Excel generally uses commas in English-language help formulas; LibreOffice and Collabora Calc commonly use semicolons. An identically named function may still have different matching defaults, dynamic-array behavior or version support.
Related guides already published for this function: LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | ONLYOFFICE Spreadsheet Editor | Apple Numbers
If a comparison tool says Not researched here, that means we do not yet have a checked guide for that software. It does not mean the software lacks this function. See the 12-program comparison tool for a guide-coverage matrix.
Official reference and editorial verification
Evidence level: Vendor-published function catalogue / formula overview, checked for this editorial batch on October 11, 2026; example outputs verified by direct reasoning/arithmetic where applicable. No execution in Microsoft Excel was performed. Some platform-, language- and release-specific edge cases remain for native testing.
October 14, 2026 review scope
The complete guide and all original formulas were reviewed against the direct Microsoft MONTH reference. Added expectations use independently computed modern Gregorian calendars, explicit component rules and narrowly documented errors. The latest approved lifecycle section and Windows-specific troubleshooting scope are retained. No native Excel execution, historical serial certification or complete input-conversion matrix is claimed.