New Tool Radar

AI for Data & Spreadsheets

How to Convert Text Dates Into Real Dates in Excel With DATEVALUE

Turn dates stored as text into real date values with DATEVALUE, then check they sort and filter as dates.

Schematic with three steps: Convert with DATEVALUE in a helper column; Fix the unrecognised dates by their parts; Paste as values and test sorting.

A date stored as text looks like a date but does not sort, filter or calculate as one, and a lookup on it will fail against real dates. DATEVALUE converts text in a date format Excel recognises into a real date value; format the result as a date afterwards.

What you need

  • Excel with the text dates column
  • An empty helper column beside the data
  • A note of the date order the text uses

Step 1: Convert with DATEVALUE in a helper column

In the helper column, enter =DATEVALUE(A2) and fill it down, then format the results as dates. A cell that returns #VALUE! holds text Excel does not recognise as a date, such as 15/03/2026 in a month-day locale.

Step 2: Fix the unrecognised dates by their parts

For dates DATEVALUE rejects, rebuild them from their parts with =DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2)), adjusted to the layout of your text dates. This states the year, month and day explicitly, so no locale guessing is involved.

Step 3: Paste as values and test sorting

Copy the converted column and use Paste Special, Values. Sort the column and confirm the dates run in true calendar order; a text date that slipped through will sort out of order.

Worked example: synthetic twelve-row date column

The table below is a synthetic example. It shows the expected result of converting text dates; no workbook was opened.

Check Count Result
Text dates in the column 12 Source
Converted by DATEVALUE 11 Pass
Rejected by DATEVALUE 1 Ambiguous day-month order
Rebuilt from parts 1 Correct date confirmed

Expected result (UNTESTED). 11 of 12 text dates convert with DATEVALUE and 1 is rebuilt from its parts after being rejected for ambiguous day-month order. All 12 are now real dates that sort correctly. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • DATEVALUE ignores any time in the text; only the date part is converted.
  • Formatting a cell as a date does not convert text already in it.
  • A date written as 03/04 is ambiguous without knowing the source order; check the source.

Sources

See all