dateformat in text

ericlch16

Active Member
Joined
Nov 2, 2007
Messages
313
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
I have a column which is a text format which is

ddmmyyyy. I want a formula to convert it to yyyymmdd.

when i download data from an ERP, the field is a text as opposed to date format.

any suggestion for a formula that i put in another column to convert it?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
dd/mm/yyyy
15/04/2011

with
=DATE(MID(A2,4,2),LEFT(A2,2),RIGHT(A2,4))

returns
September 1, 1910 ===> i can change the date format later to mm/dd/yyyy but the serial numbers are wrong. it should be April, 15 2011
 
Upvote 0
If your date is formatted as text dd/mm/yyyy then use =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2))

If it is text as ddmmyyyy as you first suggested VoG's formula works.

Edit VoG types faster than I do!
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top