Excel Problems - Fix Date Formats

Updated on November 10, 2016

One of the most frustrating problems when working in Excel is when you encounter a spreadsheet which has messed up dates and no matter what you try the dates won't format. This often happens when converting text files to Excel or when using an Excel document with European date formatting which then can’t be converted to US format MM-DD-YY. This can be a big problem when you have large amounts of data in Excel that need to be sorted by date.

This article explains how to fix this date problem in Excel and to change the date format in excel to one that works.

Step 1: The Problem, Excel can't recognise the date format

The following screenshot shows an Excel spreadsheet with dates that are not recognised by Excel. Excel does not recognise the full stop between each of the DD.MM.YY characters.


Column A is in a date format that Excel does not recognise.
Column A is in a date format that Excel does not recognise.

As shown in the below screenshot it is no use trying to format this column because Excel does not recognise the column (A) as dates.


Step 2: Isolate the Year field

What we have to do next is separate the problematic date fields into their component parts, that is Year, Month and Day. The first step is to split the dates up, using the ‘Right’ and ‘Left’ function in Excel.

Let’s start by isolating the Year characters. First we will make a new column called Year. I then will use the RIGHT formula to isolate the last 2 characters in the date field.

The formula is as follows:

=RIGHT(A2,2)

This formula will return the 2 characters on the rightmost side of the date field (i.e. 12). Then copy this formula all the way down the spreadsheet. We have now isolated the Year.

Step 3: Isolate the Day field

The next step is to isolate the day field. To do this we follow a similar process to Step 2 above, however instead of using the right function we will use the Left function and return the 2 leftmost characters from the date field.

The formula is as follows:

=Left(A2,2)


Copy the formula all the way down the spreadsheet. We now have separately isolated the Year and Day.

Step 4: Isolate the month field

The next step is to isolate the month field. This is a little trickier because the characters we want to pull are in the middle of the date cell. In order to isolate the Month Characters we need to use a 2 step process.

Firstly create a column called Day and Month and use the Left Function to isolate the 5 leftmost characters.


Use the Left function to highlight the 5 leftmost characacters and put these into a new column
Use the Left function to highlight the 5 leftmost characacters and put these into a new column

Then copy the formula all the way down the spreadsheet. We now have a 5 character DD.MM field.

Step 5: Isolate the month field

Next we want to split up the DD.MM field into just month. To do this we use the left function, to isolate the 2 rightmost characters in the previously created column.

Then copy the formula all the way down the spreadsheet. We now have separated our MM field.


Step 6: Use the DATE function to put together the Year,Month and Day columns


The final step is to join our separate date elements together, to do this I want to create a new column – let’s call it ‘Fixed date’


The function we want to use to put the date back together in a usable format is the DATE function in Excel. The DATE function will separately take the Year, month and day columns and join them together into a format that Excel will recognise.



The following screenshot shows how to use the DATE function.


Create a new column for the fixed date and use the DATE function to put together the Year-month-day.
Create a new column for the fixed date and use the DATE function to put together the Year-month-day.
Our new date field using the DATE function shows the Year 1912. We have to fix this.
Our new date field using the DATE function shows the Year 1912. We have to fix this.


As we can see the DATE function has combined the individual Year, month and day fields into a recognisable date. However there is a problem, Excel is reading the 12 as the year 1912 instead of 2012. This is easily fixed. Use the DATE function again, but in the year field we want to add 100 years to column K to go from 1912 to 2012. See below screenshot for the formula to use:


Once we have fixed the formula then copy it down the rest of the spreadsheet. We now have a working date format.


Let’s now put the new fixed date into American format.

And copy the new date format down the remaining spreadsheet.



And that is. We now have a column with dates that work, instead of an unreadable date format (column A). The last step is to tidy up the spreadsheet, remove the additional columns that we don’t need and replace the original broken date column A. To do this I just cut and paste the new date column over the top of the old one, and there we have it, a spreadsheet with dates that now work and can be read by Excel.


Copy over our new fixed date column over to the old date column, and our spreadsheet is fixed with new recognisable dates.
Copy over our new fixed date column over to the old date column, and our spreadsheet is fixed with new recognisable dates.

Comments

Submit a Comment

  • profile image

    mrenn 

    5 years ago

    I am no expert, but I believe it is easier to use this method:

    1. highlight the 'Date' column

    2. click on 'Data' tab, then click on 'Text to Columns'

    3. select 'Fixed width'

    4.click 'Next'

    5.click 'Next' again

    6. select 'Date', then see the drop down for the desired Date format

    7. click 'Finish'....you should be done - if not right don't save and use the method posted above!

  • Theeyeballkid profile imageAUTHOR

    Theeyeballkid 

    6 years ago

    Thanks very much! It is a little bit of a messy fix but it is the only one I have found that works.

  • monicamelendez profile image

    monicamelendez 

    6 years ago from Salt Lake City

    Brilliant. Honestly I never would have come up with that technique in a million years - especially the technique for getting the middle column. Thanks!

working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://turbofuture.com/privacy-policy#gdpr

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)