How to Extract Month and Day from a Date in Excel – 6 Methods

 

This dataset showcases Students and their Date of Birth.

Dataset

 

Method 1 – Using the Format Cells Option

Use the Format Cells option:

Steps:

  • Select the entire range containing dates.
  • Right-click the column and select Format Cells.

Using the Format Cells Option to Extract Month and Day from Date in Excel

  • In Format Cells, select Category and choose Custom.
  • In Type, enter mmmm.
  • Click OK.

Note: You can also press CTRL + 1 to open the Format Cells dialog box.

The month is extracted from the date.Using the Format Cells Option to Extract Month and Day from Date

  • Repeat the same procedure for the Day column.
  • In Type, enter dddd.
  • Click OK.

Day is extracted from the date.

Read More: How to Extract Month from Date in Excel


Method 2 – Applying the TEXT Function

Use the TEXT function:

Steps:

  • Go to E5 and enter the formula.
=TEXT(D5,”mmmm”)

=TEXT’ selects D5. “mmmm” shows the month.

Applying the TEXT Function to extract month and day from date in excel

  • Press ENTER and drag down the Fill Handle to fill E5:E12.

This is the output.

  • Select F5 and enter the formula.
=TEXT(D5, “dddd”)

=TEXT’ selects D5. “dddd” shows the month.

Using TEXT function extract month and day from date in excel

This is the output.

Read More: How to Extract Year from Date in Excel


Method 3 – Using the MONTH and DAY Functions

Use the MONTH function and DAY function:

Steps:

  • Inl E5, insert the formula.
=MONTH(D5)

It takes the date as input and returns the Month Number of D5.

Employing MONTH and DAY Functions to extract month and day from date in excel

Press ENTER and drag down the Fill Handle.

  • Enter the formula in F5.
=DAY(D5)

The DAY(D5) syntax takes the date in D5 and returns the Day Number.

Using MONTH and DAY function to extract month and day from date in excel

This is the output.


Method 4 – Using the Power Query Feature

Steps:

  • Select the entire range and go to the Data tab >> choose From Table/Range under Get and Transform Data.

Using Power Query Feature to extract month and day from date in excel

  • The Create Table dialog box opens. Check My table has headers.

  • The Power Query Editor will be displayed.

Power query editor

  • Right-click the Month column and select Transform >> choose Month >> select Name of Month.

Extracting month

This is the output.

  • Select the Day column >> choose Transform >> select Day >> click Name of Day.

Extracting Day

This is the output.

  • Click Close & Load  to see the table in your worksheet.

Close Load To extract month and day from date in excel

This is the output, after formatting the table.

Power Query Editor to extract month and day in Excel

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


Method 5 – Using the CHOOSE Function

Use the CHOOSE function, the MONTH function and the WEEKDAY function:

  • Go to E5 and enter the formula.
=CHOOSE(MONTH(D5),”Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”)

The MONTH function takes the month number from a date. Include the MONTH function in the CHOOSE function and enter the short for month names sequentially. The CHOOSE function selects the month in D5.

Using the CHOOSE Function to extract month and day from date in Excel

  • Press ENTER to see the result.

  • In F5 , enter the formula.
=CHOOSE(WEEKDAY(D5),” Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”)

The WEEKDAY(D5) syntax takes the number of days from the date, and the CHOOSE function chooses the match for the date.

Using the CHOOSE Function to extract month and day from date in excel

This is the output.

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


Method 6 – Applying the SWITCH Function

Use the SWITCH function:

Steps:

  • Go to E5 and enter the formula.
=SWITCH(MONTH(D5),1,”Jan”,2,”Feb”,3,”Mar”,4,”Apr”,5,”May”,6,”Jun”,7,”Jul”,8,”Aug”,9,”Sep”,10,”Oct”,11,”Nov”,12,”Dec”)

The MONTH function takes the number of months from the date; numbers are the expression_value. The SWITCH function swaps the short for the month name.

Applying the SWITCH Function to extract month and day from date in Excel

This is the output.

  • To get the days from the date insert the formula in F5.
=SWITCH(WEEKDAY(D5),1,”Sun”,2,”Mon”,3,”Tue”,4,”Wed”,5,”Thu”,6,”Fri”,7,”Sat”)
  • Press ENTER and drag down the Fill Handle.

Applying the SWITCH Function to extract month and day in Excel

This is the output.


How to Extract Month and Year from Date in Excel

You can extract month and year from the date by using the Format Cells option (extract the month).

How to Extract Month and Year from Date in Excel

Format Cells dialog Box

  • To extract the year, select the entire Date column and press CTRL + 1 to open Format Cells. Choose Custom as Category. Create yyyy in the Type box and click OK.

This is the output.

Extracting year from the date


Practice Section

Practice here.

Practice Section


Download Practice Workbook

Download the practice workbook.


Related Articles

<< Go Back To Extract Data Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Fahim Shahriyar Dipto
Fahim Shahriyar Dipto

Fahim Shahriyar Dipto is a graduate of Mechanical Engineering at BUET. With over 1.5 years of experience at Exceldemy, he authored 70+ articles on ExcelDemy. He has expertise in designing worksheets at You’ve Got This Math. Currently, He is a Team Leader at Brainor. Dipto's passion extends to exploring various aspects of Excel. Beyond tech, he enjoys creating engaging kids' worksheets using Illustrator. A dedicated employee and innovative content developer, He incorporates a commitment to academic excellence and... Read Full Bio

2 Comments
  1. Hello Mr. Fahim, I have a dataset of two columns of date. Now, I want find out the numbers of days between these days. Can it be possible? Please help me on it if possible.

    • Reply Avatar photo
      Fahim Shahriyar Dipto Nov 17, 2022 at 10:08 AM

      Hello Nicol,
      Here’s the solution. You can subtract two dates and can find out the days remaining in your hand. I have attached the step-by-step procedure for better understanding.
      Firstly, go to cell E5 and insert the formula.
      =C5-D5

      Secondly, press ENTER and drag down the Fill Handle tool.

      Finally, you will get the result like the image below.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo