How to Extract Month from Date in Excel (5 Quick Ways)

The following dataset contains some Product IDs, Sales, and Dates in columns B, C, and D. We want to extract the months from the Date column.

5 Ways to Extract Month from Date in Excel


Method 1 – Using Custom Formatting to Extract the Month from a Date

STEPS:

  • Select the date column from where you need to extract the month.
  • Right-click and select Format Cells. This will open the Format Cells dialog box.

Custom Formatting to Bring out Month From Date

  • From the Number menu, go to Custom and type “mmmm”.
  • Click OK.

Custom Formatting to Bring out Month From Date

  • The selected cells will now only show the months.

Read More: How to Extract Year from Date in Excel 


Method 2 – Getting the Month from a Date with the TEXT Function

We’ll get the result in a separate column E.

Withdraw Month From Date Using TEXT Function

STEPS:

  • Select cell E5.
  • Insert the following formula:
=TEXT(D5,"mmmm")

Withdraw Month From Date Using TEXT Function

  • Drag the Fill Handle over the range E6:E10.

Withdraw Month From Date Using TEXT Function

  • We can see the result which shows only the months in column E.

Read More: How to Extract Data Based on Criteria from Excel


Method 3 – Applying the CHOOSE Function to Extract the Month from a Date in Excel

As in the previous method, we will get the result in another column E.

CHOOSE Function to Extract Month From Date in Excel

STEPS:

  • Select cell E5 and insert the formula below, then hit Enter.
=CHOOSE(MONTH(D5),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

CHOOSE Function to Extract Month From Date in Excel

The MONTH function will retrieve the month number from the date. CHOOSE then returns the corresponding value from the array list.

  • Drag the Fill Handle down.

CHOOSE Function to Extract Month From Date in Excel

  • Here are the results.

CHOOSE Function to Extract Month From Date in Excel

Read More: How to Extract Specific Data from a Cell in Excel


Method 4 – Utilizing the SWITCH Function to Get the Month from a Date

We are using the same dataset as before.

Excel SWITCH Function to Pull Out the Month from Date

STEPS:

  • Select the cell where we want the result. We selected cell E5.
  • Insert the following formula:
=SWITCH(MONTH(D5),1,"January",2,"February",3,"March",4,"April",5,"May",6,"June",7,July",8,"August",9,"September",10,"October",11,"November",12,"December")
  • Press Enter.

Excel SWITCH Function to Pull Out the Month from Date

  • Drag the Fill Handle down.

Excel SWITCH Function to Pull Out the Month from Date

  • Here’s the result in the Month column.

Excel SWITCH Function to Pull Out the Month from Date

Read More: How to Extract Month and Day from Date in Excel


Method 5 – Using Power Query to Extract Months from Dates

STEPS:

  • Select the whole dataset.
  • Go to the Data tab on the ribbon.
  • Go to From Table/Range.

  • You’ll get the Create Table dialog box.
  • Click on the OK button.

Using Power Query to Extract Month from Date

  • This will open the Power Query Editor.

Using Power Query to Extract Month from Date

  • Select the date column and right-click.
  • Go to Transform.
  • Choose Month.
  • Click on Name of Month.

  • Alternatively, use the formula below.
= Table.TransformColumns(#"Changed Type", {{"Date", each Date.MonthName(_), type text}})

  • Press Enter.
  • Select Close & Load.


Download the Practice Workbook


Related Articles

<< Go Back To Extract Data Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo