30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / How to Get Month Name from a Date in Excel
By Puneet Gogia (Microsoft MVP)

How to Get Month Name from a Date in Excel

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

To get the month name from a date, use =TEXT(A2,"mmmm") for the full name (January) or =TEXT(A2,"mmm") for the short form (Jan). If you’d rather keep the cell as a real date and just change how it looks, skip the formula: select the cells, press Ctrl+1, choose Custom, and enter mmmm.

That matters more than it sounds — TEXT returns text, so a column of month names built with TEXT sorts alphabetically (April before January) and won’t group correctly in a pivot table, while the custom-format version stays a date underneath and sorts properly.

For a custom label set or another language, use =CHOOSE(MONTH(A2),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") with your own names. And for just the month number, =MONTH(A2) returns 1 to 12.

Let’s say you work in an office and manage project deadlines. You have a list of due dates for each project, and you need to plan your team’s workload by month.

Using an Excel formula to convert dates into month names, you can easily group all the projects due in the same month together.

In this tutorial, we will discuss all the available formulas and other methods you can use to get the month name from the date.

Extract Month Name using the TEXT Function

Using the TEXT function is a perfect method to extract the month name from a date. The basic work of the TEXT function here is to convert a date into a month by using a specific format.

=TEXT(A2,"MMM")
get month from a date with text function

You have different date formats which you can use in the TEXT function. These formats will return the month name as text:

  • “mmm”: the short name, like Jan.
  • “mmmm”: the full name, like January (formula below this list).
  • “mmmmm”: only the first letter, like J.
=TEXT(A2,"mmmm")

The formats “m” and “mm” return the month number (1 or 01) instead of the name.

All you need to do is refer to a date in the function and specify a format. And make sure the date you are using is a valid date as per Excel’s date system.

  • PRO – You have the flexibility to choose a format among 5 different formats, and the original date column remains the same.
  • CON – It returns the month name as text, and using a custom abbreviation for the month name is not possible.

If you want to get the month name with a text in a cell to make it more meaningful, you can combine the TEXT function with other text using an ampersand (or CONCATENATE).

="The month is " & TEXT(A1, "mmmm")

Use CHOOSE to Get Month from Date

Let’s say you want to get a custom month name or maybe a name in a different language instead of a number or a normal name. In that situation, the CHOOSE function can help you.

You need to specify a custom name for all 12 months in the function and use the MONTH function to get the month number from the date.

=CHOOSE(MONTH(A1),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
data with month name from a date

When the MONTH function returns the month number from the date, the CHOOSE function returns the custom month name for that number.

Related: Formula Bar

  • PRO – It gives you more flexibility, and you can specify a custom month name for each month.
  • CON – It’s a time-consuming process to add all the values in the function one by one.

Create a Custom Function to Get Month Name from a Date

You can also write a code to create a custom Excel function. This custom function gives you more flexibility to choose if you want a long name of the month or a short one. Below is the code which you need to enter in a standard module in the VBA Editor (Insert ➜ Module).

Function GetMonthName(dateValue As Date, fullName As Boolean) As String
    If fullName Then
        GetMonthName = MonthName(Month(dateValue), False) ' Returns the full month name
    Else
        GetMonthName = MonthName(Month(dateValue), True)  ' Returns the abbreviated month name
    End If
End Function

In this function, dateValue is the cell (or the date you want to enter into the formula directly) that contains the date from which you want to extract the month name. And, in the fullName, use TRUE if you want the full name of the month (e.g., “January”), or FALSE for the short name (e.g., “Jan”).

Once the code is in the module, you can use it in a cell just like any other function. Save the workbook as a macro-enabled file (.xlsm) to keep the function:

=GetMonthName(A2,TRUE)

Apply Custom Formatting for Month Name

If you don’t want to get into any formula method, the simple way to convert a date into a month is by applying custom formatting. Follow these simple steps.

  1. Select the range of cells or the column.
  2. Press the shortcut key Ctrl + 1.
  3. From the format option, go to “Custom”.
  4. Now, in the “Type” input bar, enter “MMM” for the short name or “MMMM” for the full name (“MM” shows the month number).
  5. Click OK.
get month from a date with conditional formatting open formatting options
  • PRO – It’s easy to apply and doesn’t change the date, only its format.
  • CON – As the value is a date, when you copy and paste it somewhere else as a value, it will be a date, not text. If someone changes the format, the month’s name will be lost.

Use Power Query to Get Month Name from a Long List of Dates

If you want to get a month’s name from a date in a smart way, then Power Query is your calling. It allows you to convert a date into a month and extract a month number or a month name from a date as well. Power Query is a complete package for you to work with dates. Here you have the below data and here you need months from dates.

  • First of all, convert your data into a table.
  • After that, select any of the cells from the table and go to the Data tab.
  • From the Data tab, click on “From Table/Range” (called “From Table” in Excel 2016).
click on from table to get month from date with power query
  • It will load your table in the Power Query Editor.

From here, you have two different options: one is to add a new column with the month name or month number, and the other is to convert your dates into a month name or month number. Skip the next two steps if you just want to convert your dates into months without adding a new column.

  • First of all, right-click on the column heading.
  • And after that, click “Duplicate Column”.
add a duplicate column to get month from a date
  • Select the new column from the heading and right-click on it.
  • Go to Transform ➜ Month ➜ Name of Month or Month.
select name of month to get month
  • It will instantly convert dates into months.
click close and load to get month from a date
  • Just one more thing, right-click on the column heading and rename the column to “Month”.
  • In the end, click on “Close & Load” and it will load your data into a worksheet.
data with month name from a date
  • PRO – It’s a dynamic and one-time set-up. Your original data will not get impacted.
  • CON – It takes a few more steps, and you need to refresh the query (Data ➜ Refresh All) when your dates change.

Get the Month Name from a Month Number

If you have only the month number (1 to 12) in a cell, build a date from it with DATE and then use TEXT. The year and the day don’t matter, so 2024 and 1 are fine:

=TEXT(DATE(2024,B2,1),"mmmm")

And to get the month number from a date, use the MONTH function:

=MONTH(A2)

Month Name for Blank Cells

A blank cell counts as 0 for Excel, and 0 as a date is in January, so TEXT returns “January” for an empty cell. Wrap the formula in IF to return a blank instead:

=IF(A2="","",TEXT(A2,"mmmm"))

Wrap Up

All the above methods can be used in different situations. But some of them are more frequently used.

The TEXT function is applicable in most situations. On the other hand, you also have Power Query to get months in a few clicks. If you ask me, I use the TEXT function, but these days I am more in love with Power Query, so I would also like to use it.

In the end, I just want to say, you can use any of these methods according to your need. But you need to tell me one thing.

Which one is your favorite method? Please share with me in the comment section, I’d love to hear from you. And, don’t forget to share this with your friends.

Frequently Asked Questions

Why does TEXT return the date instead of the month name?

The cell has a date stored as text that Excel can’t read as a date. TEXT then returns the value as it is. Convert it to a real date first (see the valid date link above), and the formula will work.

How do I sort data by month name?

Month names are text, so they sort alphabetically (Apr, Aug, Dec…). Add a helper column with =MONTH(A2) and sort by that column, or sort the date column itself.

Can I get the month name in another language?

Yes. Add a language code to the format in TEXT, like [$-fr-FR]mmmm for French, or use the CHOOSE method with your own names.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

6 thoughts on “How to Get Month Name from a Date in Excel”

  1. Is this the same one as the one highlighted in your recent emaiil, How to Get Month From a Date where the links do not work?
    Thanks Puneet

    Reply
  2. I love to use text function and custom formating.

    Reply
  3. This is great! Do you have any tutorials on Power Query?

    Reply

Leave a Comment