Excel Return Month Name from Date: 3 Easy Methods
In this article
To return the month name from a date in Excel, the fastest method is using the =TEXT(cell, "mmmm") formula. This converts a date value into a text string representing the full month name (e.g., "January"). Depending on whether you want to actually change the data or just change how it looks, you can also use Custom Number Formatting or the Power Query editor.
What You'll Need
- A computer with Microsoft Excel installed (works on Office 365, 2021, 2019, and older versions).
- A dataset containing valid Excel dates (dates must be recognized as numbers by Excel, not stored as plain text).
Step-by-Step
Method 1: Using the TEXT Function (Best for Data Analysis)
Use this method when you need the month name to exist as a separate text value that you can use in filters, pivot tables, or other formulas.
- Click on the empty cell where you want the month name to appear.
- Type the formula
=TEXT(. - Click on the cell that contains the date (e.g., cell A2).
- Type a comma, then enter the format code in quotation marks. For the full month name, use
"mmmm". The formula should look like this:=TEXT(A2, "mmmm"). - Press Enter.
- Hover over the bottom-right corner of the cell (the fill handle) and drag it down to apply the formula to the rest of your column.
Method 2: Using Custom Number Formatting (Best for Visuals)
Use this method if you want to keep the original date value for calculations but want the cell to display only the month name.
- Select the cell or range of cells containing your dates.
- Right-click the selection and choose Format Cells... (or press
Ctrl + 1). - In the Number tab, select Custom from the Category list on the left.
- In the Type input box, delete whatever is there and type
mmmm. - Click OK.
Method 3: Using Power Query (Best for Large Datasets)
Use this method when importing large amounts of data that need to be cleaned and transformed automatically.
- Select your data range and go to the Data tab on the ribbon.
- Click From Table/Range. If your data isn't a table, Excel will prompt you to create one.
- In the Power Query Editor window, right-click the header of the date column.
- Navigate to Transform > Month > Name of Month.
- Click Close & Load on the Home tab to return the results to a new Excel sheet.
Common Mistakes
- Using "mm" instead of "mmmm": In Excel formatting,
mmreturns the month number (01, 02),mmmreturns the short name (Jan, Feb), andmmmmreturns the full name (January, February). - Applying formulas to text-dates: If your date is stored as text (often aligned to the left of the cell), the TEXT function will return a
#VALUE!error. You must convert the text to a date first using the Date Value tool or the Text to Columns feature. - Confusing Formatting with Conversion: Remember that Method 2 (Custom Formatting) does not change the data. If you click the cell, the formula bar still shows the full date. If you try to sort alphabetically, it will still sort by date, not by the name of the month.
Tips
- Shorten the name: If you have limited space in your spreadsheet, use
"mmm"in the TEXT function to get abbreviated names like "Jan" or "Oct". - Combine with other text: You can combine the month name with other words using the ampersand. For example:
="Report for " & TEXT(A2, "mmmm")will result in "Report for January". - Dynamic Updates: If you use the TEXT formula, the month name will automatically update if you change the date in the source cell.
Troubleshooting
If the month name does not appear correctly, try these steps in order:
- Check for #VALUE! errors: This usually means Excel doesn't recognize the cell as a date. Select the column, go to the Data tab, click Text to Columns, click Next twice, select Date (MDY or DMY depending on your region), and click Finish.
- Verify the Format Code: Ensure you used four "m"s (
mmmm) and that they are enclosed in double quotation marks within the formula. - Check Regional Settings: In some non-English versions of Excel, the format code for month may differ (e.g., in German, you might use
"MMMM"or a different character depending on the localized version). - Clear Existing Formatting: If the cell shows a strange number (like 45291), it is likely formatted as a "General" number. Apply the Custom Formatting steps again.
Frequently Asked Questions
Can I get the month name as a number instead?
Yes. Use the =MONTH(A2) formula. This returns a number from 1 (January) to 12 (December).
Will the month name change if I change my system language?
Yes. The TEXT function and Custom Formatting rely on your computer's regional and language settings. If you share the file with someone in a different region, the month names will appear in their local language.
How do I get the month name to start with a capital letter?
The TEXT function usually follows standard capitalization. If it doesn't, wrap it in the PROPER function: =PROPER(TEXT(A2, "mmmm")).
Is there a way to do this without formulas?
Yes, using Method 2 (Custom Number Formatting) or Method 3 (Power Query) allows you to extract or display the month name without writing a manual formula in each cell.
Why does my date turn into a number like 45123?
Excel stores dates as sequential serial numbers. If you remove the date formatting, you see the underlying number. Simply change the cell format back to Date or Custom (mmmm) to fix this.