Formula Errors

Fix the Wrong Year When Converting DD.MM.YYYY Dates in Excel

Ayan MasoodAyan Masood Nov 14, 2026 871 views

Question details

Convert DD.MM.YYYY date text into Excel dates without changing the century.

Fix the Wrong Year When Converting DD.MM.YYYY Dates in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user is converting dates such as 06.03.2017 from text into usable Excel dates.
Observed behavior
The conversion can return a date in 1917 instead of 2017 when the formula extracts only the last two digits of the year.
Before you start

Check that the source values are text in the consistent DD.MM.YYYY format, with two digits each for the day and month. Identify the first source cell and an empty column for the converted dates.

Solution 1Recommended

Extract the Full Year with the DATE Formula

Use this formula when the source dates are text in a consistent DD.MM.YYYY format.

Excel adds 1900 to year arguments from 0 through 1899. Extracting 17 instead of 2017 therefore produces 1917.

1
Enter the conversion formula

In an empty cell next to the first date in G2, enter =DATE(RIGHT(G2,4),MID(G2,4,2),LEFT(G2,2)). Replace G2 with your source cell if needed.

2
Fill the formula down

Select the formula cell and drag its fill handle down alongside the remaining dates.

3
Format the results

Select the results, open Format Cells, and choose Date or a custom format such as dd.mmm.yyyy.

Extract the Full Year with the DATE Formula
Check the source format: The formula assumes each text value has exactly the structure DD.MM.YYYY. It is not intended for cells that already contain real Excel dates.
Convert dates in WPS Spreadsheets

Correct DD.MM.YYYY Dates in WPS Spreadsheets

Use the DATE formula in WPS Spreadsheets to extract the full year from date text and display the result as a usable date.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select the workbook containing the date text.
  2. 2. Enter the formula: In an empty cell, enter =DATE(RIGHT(G2,4),MID(G2,4,2),LEFT(G2,2)), replacing G2 with the first source cell if necessary.
  3. 3. Apply it to the column: Select the formula cell and drag the fill handle down to convert the remaining dates.
  4. 4. Format the dates: Select the results, open Format Cells, and choose a date format such as dd.mmm.yyyy.
Convert DD.MM.YYYY text without losing the four-digit yearOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and date formatsWork in a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel turn 2017 into 1917?

If the DATE formula receives 17 as its year argument, Excel adds 1900 and uses 1917. Change RIGHT(G2,2) to RIGHT(G2,4) to extract 2017.

Can I convert the dates without a formula?

Yes. Select the text dates, choose Data > Text to Columns, click Next twice, and select Date > DMY before clicking Finish.

Why does my converted date appear as a number?

Excel stores dates as serial numbers. Select the result, open Format Cells, and choose a Date format to display it as a date.

Will the formula work if the source cell is already a real date?

The formula is intended for text in DD.MM.YYYY format. If the cell already contains a real date, use Format Cells to change its display instead.