Fix Excel Date Not Formatting Correctly (8 Quick Solutions)

Here’s an overview of fixing the date format in Excel. You can use the Text to Columns feature to extract and format dates from cells.

fix excel date no formatting correctly overview


Fix 1 – Converting the Text String to an Excel Date Format Correctly

When copying dates from one range to the other, you may get integer or decimal values instead of dates. This is due to Excel saving dates as numbers.

fix excel date not formatting correctly by converting into date format

Steps:

  • Select the range of cells containing the number values that have to be turned into date format.
  • Under the Home tab and from the Number group of commands, click on the drop-down.
  • You’ll see two types of date format there: Short Date and Long Date.
  • Select any one of these two formats.

fix excel date not formatting correctly by converting into date format

  • Here’s the result.

fix excel date not formatting correctly by converting into date format


Fix 2 – Customizing the Date Formatting Correctly in Excel

Steps:

  • Under the Home ribbon, open the Cell Format dialogue box from the Number group of commands by pressing on the arrow at the corner.

fix excel date not formatting correctly by customizing number format

  • Select Custom under the Number tab.
  • We want to see the date format as ‘Wednesday, 12.08.2020’. Under the Type option, we wrote:

dddd, dd.mm.yyy

  • You’ll be shown a preview under the Sample bar.
  • Press OK.

fix excel date not formatting correctly by customizing number format

  • Here are the results.

fix excel date not formatting correctly by customizing number format


Fix 3 – Extracting Dates from Text by Using the Column Wizard

If the strings contain values other than dates, then you can’t convert them directly via Format Cells.

fix excel date not formatting correctly by extracting dates from text

Steps:

  • Select the entire range of cells containing the texts with dates.
  • From the Data tab, choose the Text to Columns option from the Data Tools drop-down..

fix excel date not formatting correctly by extracting dates from text

  • You’ll get a Text to Columns wizard.
  • Select Delimited and press Next.

fix excel date not formatting correctly by extracting dates from text

  • Check Space as the delimiter since the sample text data contains spaces among them.

fix excel date not formatting correctly by extracting dates from text

  • You’ll get a preview of the resulting columns. Select Date as the Column Data Format.
  • The dates in the texts are in MM/DD/YYYY format so select MDY format from the Date drop-down.

fix excel date not formatting correctly by extracting dates from text

  • Click on the second column now in the Data Preview section.
  • Select Do not import column(skip) radio button for Column Data Format.

fix excel date not formatting correctly by extracting dates from text

  • Click on the third column.
  • Select Do not import column(skip) for Column Data Format for the third column, too.
  • Press Finish.

fix excel date not formatting correctly by extracting dates from text

  • You’ll get a range of cells that contains dates.

fix excel date not formatting correctly by extracting dates from text


Fox 4 – Using the VALUE Function to Fix the Date Format

In Column B, we have dates with text format though they look like in the exact date format.

Steps:

  • Select Cell C5 and insert the following:
=VALUE(B5)
  • Press Enter and the function will return numbers.
  • Use the Fill Handle now to autofill the entire Column C.
  • The text format has just turned into number format.

using value function to fix excel date not formatting correctly

  • Select the range containing the results.
  • Under the Number group of commands in the Home tab, select Short or Long Date format.

using value function to fix excel date not formatting correctly

  • The dates will be displayed in a proper format in Column C.

using value function to fix excel date not formatting correctly

Read More: How to Convert a Date to dd/mm/yyyy hh:mm:ss Format in Excel


Fix 5 – Inserting the DATEVALUE Function to Fix the Date Format in Excel

If other strings except date or time exist in the cell, the DATEVALUE function cannot recognize the date or time data in the cell and will return as #VALUE! error. The syntax of this DATEVALUE function is:

=DATEVALUE(date_text)

using datevalue function to fix excel date not formatting correctly

Steps:

  • Select Cell C5 and insert:
=DATEVALUE(B5)
  • Press Enter and use the Fill Handle to autofill other cells in Column C.
  • The text values will turn into number format. Change the format of those numbers into date format.
  • We get an error cell due to a string that’s not a date in the source. Fix that manually or using another option.

using datevalue function to fix excel date not formatting correctly

The basic difference between uses of VALUE and DATEVALUE functions is DATEVALUE function extracts only dates from a combination of date and number from a cell. But the VALUE function searches for numbers only from a text string no matter it represents a date or time value.


Fix 6 – Applying Find and Replace to Convert Text into Dates

If the dates include Dots(.) instead of Obliques(/) as the separators, the VALUE or DATEVALUE function will not be able to recognize date value from a text string.

find and replace to fix excel date not formatting correctly

Steps:

  • Select the text data containing dates.
  • Press Ctrl + H to open the Find and Replace dialog box.
  • Input a Dot(.) for Find What and a Forward Slash(/) for Replace With.
  • Press Replace All.

find and replace to fix excel date not formatting correctly

  • All date values in Column B will get slashes as separators.

find and replace to fix excel date not formatting correctly

  • In Cell C5, use the DATEVALUE function to convert the text format into a number format that will represent dates.
=DATEVALUE(B5)
  • Use Fill Handle to fill down the rest of the cells and you’ll find the dates in accurate format.

find and replace to fix excel date not formatting correctly


Fox 7 – Using the SUBSTITUTE Function for Formatting Dates

Another way to remove improper date separators is via the SUBSTITUTE function.

=SUBSTITUTE(text, old_text, new_text, [instance_num]

Steps:

  • In Cell C5, insert the following:
=SUBSTITUTE(B5,".","/")
  • Press Enter and autofill the entire Column C with the Fill Handle.
  • You’ll get the values with the proper date formatting.

using substitute function to fix excel date not formatting correctly


Fix 8 – Using the Error-Checking Option to Fix Date Format

The cells containing dates in an improper format can show errors that you can find by clicking on the yellow icon with the exclamation sign.

using error checking option to fix excel date not formatting correctly

  • Select the option that will convert the 2-digit year to the 4-digit year with the 20XX year format. If the years in your data represent 1900-1999, choose 19XX.

using error checking option to fix excel date not formatting correctly

  • Excel will automatically fix the values.

using error checking option to fix excel date not formatting correctly


Things to Remember

Excel stores the date values as numbers. By default, this counting starts from 1st January of 1900. However, the program doesn’t recognize dates before that as valid inputs for the date format. If you want to calculate using those dates, one of the options is to add 1,000 years to the date and use that value for calculations, then use a custom format to display it.

Issues with Date Format in Excel


Download the Practice Workbook


Related Articles


<< Go Back to Date Format | Number Format | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nehad Ulfat
Nehad Ulfat

NEHAD ULFAT is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET but switched gears, working as a content developer.  In this role, he creates techy content all about Excel... Read Full Bio

4 Comments
  1. It misses one useful way to fix dates – when dates display as number in the cell and a date in the entry bar, and all the applying date formats do nothing.

    Ctrl + `
    Where a user has accidentally turned on “Show formulas”

    To reproduce:
    Ctrl + `
    Enter a date
    Set format on cell to “dd-mmm”, then “dd-mmm-yyyy” and any other combination

    Then Ctrl + ` and the date is correctly formatted

    • Reply Lutfor Rahman Shimanto
      Lutfor Rahman Shimanto Feb 2, 2023 at 5:27 PM

      Thank you so much for sharing this tip, Andy! I sincerely appreciate the time you took to share your expertise and assist others with this problem. Your suggestion proved effective, and We are genuinely grateful for it. Thank you again!
      Regards
      Lutfor Rahman Shimanto

  2. Another point, you cannot use the date format function for dates before 1900. For example, 10/01/1889 will not convert to the date format (dd-mmm-yyyy) 01-Oct-1889. You must enter the date in the preferred format manually. I cannot think why Excel would be limited in this way, but for those of us documenting genealogy with large populations with dates prior to 1900 this is a head scratching limitation.

    • Reply Avatar photo
      Musiha Mahfuza Mukta Oct 22, 2023 at 12:10 PM

      Thank you so much for pointing out this issue, Debbie! I wholeheartedly express my gratitude for the valuable time you dedicated to sharing your expertise and aiding others in addressing this matter.
      I have added the limitations of Excel (regarding date format) in the article too. Thanks again!
      Regards,
      Musiha|Exceldemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo