Skip to main content

How to extract month and year only from date in Excel?

Author: Xiaoyang Last Modified: 2025-04-09
extract month and year only from date

Sometimes, you may want to extract only the month and year from a full date to simplify your analysis or for formatting purposes. This guide provides detailed steps and techniques to achieve this efficiently.

Extract only month and year from the date with formula

Convert the date to month and year format with Kutools for Excel

Convert the date to month and year format with Format Cells feature


Extract month and year from the date with formulas

The following simple formulas may help you to extract only the month and year from the given date, please do as follows:

Enter the below formula into a blank cell besides your data. Then drag the formula down to apply it to other cells, and only the month and year have been extracted from the date column,see screenshot:

=TEXT(A2,"mmm-yyyy")

extract month and year only from date with formula

Explanation of this formula:
  • The TEXT function formats the date as text, displaying the full month name and the year.
  • "mmm-yyyy" specifies the format: abbreviated month name followed by the four-digit year. (e.g., Jan-2025)

Convert the date to month and year format with Kutools for Excel

Kutools for Excel provides a fast and seamless solution to transform dates into a clean and consistent month and year format. With its "Apply Date Formatting" feature, you can effortlessly convert dates into any desired format, whether it's a standard layout like "March 2025" or a fully customized format tailored to your specific needs.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as this:

1. Select the date cells that you want to convert to month and year format. Then, click "Kutools" > "Format" > "Apply Date Formatting".

2. In the "Apply Date Formatting" dialog box, please specify one date format that you want, this example, I will choose one of the month and year formats, see screenshot:

specify the options in the dialog box

3. Then click OK button, Kutools will instantly convert your dates to the selected format. See screenshot:

Convert the date to month and year format with Kutools


Convert the date to month and year format with Format Cells feature

If you only need to display the month and year without modifying the underlying data, custom number formatting is a great option.

1. Select the date cells. Then, right-click and choose "Format Cells".

2. In the "Format Cells" dialog box, go to the "Number" tab and select "Custom". Then, enter the format mmm-yyyy into the "Type" textbox.

specify the options in the dialog box

3. Click OK button. The selcted dates are convert to month and year format as following screenshot shown:

Convert the date to month and year format with Format cells feature


Conclusion

Extracting only the month and year from a date in Excel can be achieved through multiple efficient methods, each catering to different needs and preferences. Whether you prefer the simplicity of Excel formulas, the versatility of Kutools for Excel, or the built-in Format Cells feature, there’s a solution to suit your workflow.

  • Excel Formula: Ideal for quick, dynamic results.
  • Kutools for Excel: Perfect for users seeking a faster, more automated approach with customizable formatting options.
  • Format Cells Feature: A straightforward, no-formula method for applying standard or custom date formats directly.

By choosing the method that best fits your requirements, you can efficiently format your dates, ensuring clarity and consistency in your data. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials to help you master Excel.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!