If you import data into Excel, and try to format a column of dates, sometimes the dates will not change format. See how to fix Excel dates that won't change format, by using a built-in Excel tool, and a few simple steps.
If you import data into a Microsoft Excel spreadsheet, and try to format a column of dates, sometimes the dates will not change format. This video shows how to fix the dates that won't change format, with a few simple steps. There are written steps below the video, and to follow along with the steps in this video, download the sample Excel Dates Fix Format workbook. Video Timeline
|
Excel Dates Do Not Change FormatIn the screen shot below, Column C contains imported dates, which show the date and time, separated by a space character. The date is in short date format - d/m/yyyy. The time shows hour, minute and second = hh:mm:ss with AM or PM.
Those dates stay in the same date/time format, no matter how you try to format cells that contain those dates. Dates Are NumbersWhy won’t the imported dates change format? Why won't they show a short date, without time included, in the cell's formatting? In Excel, dates are stored as numbers. The imported dates are probably stored as text, instead of real numbers, and that is causing the problem. Excel Date SystemThe date system in Microsoft Excel for Windows starts on January 1, 1990. Note: In Excel for Mac, the date system starts on January 1, 1904
Excel Date System NotesHere are a few notes on formatting numbers as dates:
Learn more about the Excel date systems on the Microsoft website. Problem Date PreviewsHowever, if you select a cell with one of the imported dates that won't change format, the Number format commands show that there is a problem:
Imported Dates Are Text DataAlthough the entries in column C look like dates, Excel sees them as text, not real dates. And that's why the imported dates won't change format -- Excel will not apply number formatting to text. Here are a few more signs that the items in column C are being treated as text:
|
If you want to sort the dates in column C, or change their format, the text dates have to be converted to real dates (numbers).
A quick way to fix the "text" dates is to use the Text to Columns feature -- follow these steps:
On the worksheet, check the items in column C, to see if they are real dates (numbers) now. There are a few signs that the cell contents are now being recognized as real dates:
After the dates have been converted to real dates, you can format them with the Number Format commands.
To change date formats, follow the steps below -- 3 different options are show:
OR
OR
In the screen shot below, the pointer is over the dialog launcher for the Number group on the Ribbon
All of the built-in date formatting options should work correctly, after you have converted the text dates to real dates.
To try the steps in this tutorial, download the sample Excel Dates Fix Format workbook. The file is zipped, and is in xlsx file format, The file does not contain any macros.
Last updated: June 19, 2022 2:35 PM