To extract the month from a date in Excel, use the MONTH function: if your date is in cell A1, enter =MONTH(A1) in another cell. This returns the month as a number from 1 (January) to 12 (December). For a month name, wrap it in TEXT: =TEXT(A1,"mmmm") gives the full name (e.g., "January"), and =TEXT(A1,"mmm") gives the abbreviation (e.g., "Jan"). The steps below show exactly how to set this up, plus common pitfalls and fixes.
What You'll Need
- Microsoft Excel (any recent version: Excel for Microsoft 365, Excel 2019, 2021, or Excel for Mac). The functions work the same across versions.
- A worksheet with at least one column containing valid dates. Excel must recognize them as dates, not text.
- Basic familiarity with entering formulas and copying them down a column.
Step-by-Step
- Verify your dates are real dates. Select a date cell and look at the formula bar. If it shows a date like
1/15/2024, Excel sees it as a date. If it shows text like15-Janbut the cell is left-aligned, it may be text. To test, use=ISNUMBER(A1)in an empty cell: TRUE means a real date, FALSE means text. If FALSE, convert it (see Troubleshooting). - Pick a destination cell. Click the cell where you want the month to appear, for example B1 next to your first date in A1.
- Enter the MONTH formula. Type
=MONTH(A1)and press Enter. The cell now shows the month number (1–12). - Copy the formula down. Drag the fill handle (the small square at the bottom-right of the cell) down to apply the formula to the rest of your dates. Alternatively, double-click the fill handle to auto-fill to the end of the adjacent data.
- For month names, use TEXT. In a new column, enter
=TEXT(A1,"mmmm")for the full name or=TEXT(A1,"mmm")for the short name. Copy down as before. - Optional: combine with day or year. To show "January 2024", use
=TEXT(A1,"mmmm yyyy"). To show the month and day, use=TEXT(A1,"mmmm d"). - Check regional settings. The TEXT function uses your system's locale. In some regions, the format code for full month name is still "mmmm", but the output language follows Windows or Mac regional settings. If you need a specific language, set it in your OS or use a lookup table (see Tips).
Common Mistakes
- Using MONTH on text dates. If A1 contains the text "January 15, 2024" stored as text,
=MONTH(A1)returns#VALUE!. Convert text to dates first (Data > Text to Columns, or use=DATEVALUE(A1)). - Expecting MONTH to return a name. MONTH always returns a number. Use TEXT for names.
- Forgetting to copy the formula. Entering the formula in one cell and expecting the whole column to fill automatically does not work; you must copy or fill down.
- Mixing date systems. Excel for Mac historically used the 1904 date system. If dates are off by four years and a day, check File > Options > Advanced > "Use 1904 date system" (Windows) or Excel > Preferences > Calculation (Mac).
- Typing the format code in the wrong language. TEXT format codes are English-based ("mmmm"), even if your Excel interface is in another language. Using localized codes like "mmmm" in some languages may fail; stick to English codes.
Tips
- To sort or filter by month chronologically, keep a helper column with
=MONTH(A1)and sort on that number, not on the month name (names sort alphabetically). - If you want month names in a specific language regardless of system settings, create a small lookup table: 1=January, 2=February, etc., and use
=VLOOKUP(MONTH(A1),lookup_range,2,FALSE). - Use
=EOMONTH(A1,0)to get the last day of the month, which is handy for month-end reports. - To count entries per month, combine with COUNTIFS:
=COUNTIFS(A:A,">="&DATE(2024,1,1),A:A,"<="&EOMONTH(DATE(2024,1,1),0))counts January 2024 dates. - Format the result cell as General or Number to avoid unexpected date formatting.
Troubleshooting
- #VALUE! error: The referenced cell is text, empty, or contains an invalid date. Check with
=ISNUMBER(A1). If text, convert using Text to Columns (select column, Data > Text to Columns, choose Delimited, then set Column data format to Date and pick the correct order). - Wrong month number: The date may be stored as text that looks like a date, or the cell reference is off. Verify the formula points to the correct cell and that the date is valid (e.g., not 31/02/2024).
- Month name appears in another language: Change your system locale (Windows: Settings > Time & Language > Language & Region; Mac: System Settings > General > Language & Region) or use a lookup table as described in Tips.
- Formula shows as text: The cell may be formatted as Text before you entered the formula. Change the format to General, then re-enter the formula (press F2, then Enter).
- Dates off by four years: Check the 1904 date system setting and uncheck it if needed. Note that changing this setting shifts all dates in the workbook.
- Fill handle not working: Enable it via File > Options > Advanced > "Enable fill handle and cell drag-and-drop".
Frequently Asked Questions
Can I get the month name directly without TEXT?
Yes, you can use =CHOOSE(MONTH(A1),"January","February",...,"December"), but TEXT is shorter and easier to maintain.
Does MONTH work with dates that include time?
Yes, MONTH ignores the time portion and returns the month of the date part.
What if my date is in a different cell on each row?
Use relative references (e.g., =MONTH(A2) in row 2) and copy down; Excel adjusts the row number automatically.
Can I extract the month from a date formatted as text like "2024-01-15"?
If Excel recognizes it as a date (check with ISNUMBER), MONTH works. If not, convert it first using DATEVALUE or Text to Columns.
Is there a way to get the month as a two-digit number?
Use =TEXT(A1,"mm") to get 01, 02, etc.
Why does TEXT return "mmmm" instead of the month name?
You likely omitted the quotes around the format code or used a non-English code. Ensure the formula is =TEXT(A1,"mmmm") with straight quotes.