Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • How to combine 2 or more chart types in a single chart in Excel
  • Filter Data Based on Date in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • Working With Tables in Excel

References

  • Two-way lookup with VLOOKUP in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get first row number in range in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • Left Lookup in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Excel Data validation only dates between
  • Excel Data validation allow uppercase only

Convert date to month and year in Excel

by

This tutorial shows how to Convert date to month and year in Excel using example below.

To convert a normal Excel date into yyyymm format (e.g. 9/1/2017 > 201709), you can use the TEXT function.

Formula

=TEXT(date,"yyyymm")

How-to-Convert-date-to-month-and-year-in-Excel-excel-tutorials-xlsoffice

Explanation

In the example shown, the formula in C6 is:

=TEXT(B6,"yyyymm")

How this formula works

The TEXT function applies the number format you specify to a numeric value, and returns a result as text.

In this case, the number format provided is “yyyymm”, which joins a 4-digit year with a 2-digit month value.

Display only option

If you only want to display a date with the year and month, you can simply apply the custom number format “yyyymm” to the date(s). This will cause Excel to display the year and month together, but will not change the underlying date.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel NOT Function
  • How to use IFS function in Excel
  • How to use Excel FALSE Function
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel

Date Time

  • Get days, months, and years between dates in Excel
  • Get last weekday in month in Excel
  • Get first Monday before any date in Excel
  • Get month name from date in Excel
  • How to calculate workdays per month in Excel

Grouping

  • Map text to numbers in Excel
  • Map inputs to arbitrary values in Excel
  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign people to groups in Excel

General

  • How to create dynamic worksheet reference in Excel
  • Spell Check in Excel
  • How to calculate percent change in Excel
  • Excel Operators
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning