Home > Skills > Data Entry > Fix Dates Excel Dates How to Fix FormatIf 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. |
Problem Excel DatesIf 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 sequential serial numbers. The imported dates are probably stored as a text value, instead of real numbers, and that is causing the formatting problem. Note: Only positive numbers can be formatted as valid dates. If you format negative numbers as dates, the cells will be filled with number signs. |
Excel Date SystemThere are date system differences in some versions of Excel. Windows
Excel for Mac
See Numbers in Date Format
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:
|
Fix Dates - Text to ColumnsIf 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, all at once, so they become real numbers, is to use the Excel Text to Columns feature. Start Text to ColumnsTo try this method for fixing text dates, follow these steps:
|
Convert Text to Columns Wizard Step 1
|
Convert Text to Columns Wizard Step 2
|
Convert Text to Columns Wizard Step 3In Step 3, you'll select a column in the sample data preview, and tell Excel how to convert it. Choose Current Data FormatFirst, you'll tell Excel which format the dates are currently in. Later, after the dates are converted, you can choose a different date format on the worksheet. Follow these steps to pick the current date format:
|
Delete Columns Not NeededNext, you'll delete any extra columns from the Data Preview pane.
To prevent the extra columns from being included, follow these steps:
Finish the Date FixTo complete the date conversion, follow these final steps:
|
Check the ResultsOn 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:
|
Format the DatesAfter 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 shown
Option 1 - Quick Format
|
Option 2 - Format Cells
|
Option 3 - Custom FormatFollow these steps to create a custom date format:
In the screen shot below, the pointer is over the dialog box launcher for the Number group on the Ribbon |
Get the Sample FileTo 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. Related Tutorials |
Last updated: December 6, 2022 7:30 PM