Excel Tutorial
Excel tutorials, quizzes & AI guides — all levels
RSS
  • Online Excel Exercises
  • Training
  • Excel Tests
  • Sitemap
  • Premium Quizzes
  • Shop
  • My account

Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel

Date
Reading time: 2 minutes
Post Views: 170,283

Converting a date from the format YYYYMMDD to DD/MM/YYYY is simple in Excel. You can use either a formula or the Text to Column tool. Here’s how to do it.

#1 Extract each Date parts with 3 different function

Suppose the date is in cell A1 (e.g., 20241028 for 28th October 2024). The following formula works for any Excel version

=DATE(LEFT(A1,4), MID(A1,5,2), RIGHT(A1,2))

Convert date yyyymmdd by formula

Explanation of the Formula:

  • LEFT(A1,4): Extracts the first 4 characters from A1, which represent the year.
  • MID(A1,5,2): Extracts 2 characters from the middle, starting at the 5th position, for the month.
  • RIGHT(A1,2): Extracts the last 2 characters for the day.
  • The DATE function then combines these parts into a proper date format.

#2 Extract each Date parts by following a pattern

If you use Excel 365, you can use the trick with the MID function with an array as an argument. The array represents the pattern of your date and also how to reorder the output 😮👍

Splitting date to return dd mm yyyy

#3 Using Text to Column Tool

However, you can convert a YYYYMMDD date or any other date format to your local date format with the tool Text to Columns. This tool is normally used to split text with a delimiter, but here, we will trick it 😉

  1. Select the column with the YYYYMMDD dates.
  2. Go to Data > Text to Columns.
Menu Data Text to Columns
  1. Skip the 2 first steps because there is no need to split your column
  2. The key to the technique is the 3rd step. With the dropdown list, you can select the type of date format that you have in your column. So, in our example, we will choose YMD because our dates are written YYYYMMDD.
Convert the date from yyyymmdd to ddmmaaaa
  1. Press Finish and that's it 😃 But be aware that this technique replaces your source.

Benefits of These Techniques

  • Formula Method: Useful when your dates could be updated. With formulas, the result will be automatically refreshed.
  • Text to Column Tool: Ideal for one-time conversions or when working interactively. It’s easy to follow without complex formulas.

Both methods ensure your dates are readable and usable, especially when working with international date formats or preparing data for reports.

Related articles

  • Convert a Text Date to a Number Date
  • Split your text on a delimiter – TEXTSPLIT Function
  • Date format
  • Split date and Time in Excel
  • Displaying Days in Letters in Excel
  • How to display Months in Letters in Excel?

Frédéric LE GUEN

DATE, Date format, MID, text to columns, YYYYMMDD

Leave a Reply Cancel reply

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

Most Viewed Posts

  • Displaying Negative Numbers in Parentheses in Excel (309,807)
  • Top 10 Excel Functions You Must Know (231,874)
  • How to make automatic calendar in Excel (212,431)
  • Dash for a zero in Excel automatically (190,223)
  • Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel (170,283)
image excel exercises
Excel Exercises
image excel quizzes
Excel Quizzes

Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel

Reading time: 2 minutes
Post Views: 170,283

Converting a date from the format YYYYMMDD to DD/MM/YYYY is simple in Excel. You can use either a formula or the Text to Column tool. Here’s how to do it.

#1 Extract each Date parts with 3 different function

Suppose the date is in cell A1 (e.g., 20241028 for 28th October 2024). The following formula works for any Excel version

=DATE(LEFT(A1,4), MID(A1,5,2), RIGHT(A1,2))

Convert date yyyymmdd by formula

Explanation of the Formula:

  • LEFT(A1,4): Extracts the first 4 characters from A1, which represent the year.
  • MID(A1,5,2): Extracts 2 characters from the middle, starting at the 5th position, for the month.
  • RIGHT(A1,2): Extracts the last 2 characters for the day.
  • The DATE function then combines these parts into a proper date format.

#2 Extract each Date parts by following a pattern

If you use Excel 365, you can use the trick with the MID function with an array as an argument. The array represents the pattern of your date and also how to reorder the output 😮👍

Splitting date to return dd mm yyyy

#3 Using Text to Column Tool

However, you can convert a YYYYMMDD date or any other date format to your local date format with the tool Text to Columns. This tool is normally used to split text with a delimiter, but here, we will trick it 😉

  1. Select the column with the YYYYMMDD dates.
  2. Go to Data > Text to Columns.
Menu Data Text to Columns
  1. Skip the 2 first steps because there is no need to split your column
  2. The key to the technique is the 3rd step. With the dropdown list, you can select the type of date format that you have in your column. So, in our example, we will choose YMD because our dates are written YYYYMMDD.
Convert the date from yyyymmdd to ddmmaaaa
  1. Press Finish and that's it 😃 But be aware that this technique replaces your source.

Benefits of These Techniques

  • Formula Method: Useful when your dates could be updated. With formulas, the result will be automatically refreshed.
  • Text to Column Tool: Ideal for one-time conversions or when working interactively. It’s easy to follow without complex formulas.

Both methods ensure your dates are readable and usable, especially when working with international date formats or preparing data for reports.

Related articles

  • Convert a Text Date to a Number Date
  • Split your text on a delimiter – TEXTSPLIT Function
  • Date format
  • Split date and Time in Excel
  • Displaying Days in Letters in Excel
  • How to display Months in Letters in Excel?
Tags: DATEDate formatMIDtext to columnsYYYYMMDD

Frédéric LE GUEN

Leave a Reply Cancel reply

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

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net