Excel DATEVALUE to Date

“excel datevalue to date” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =DATEVALUE(date_text) — it converts a date stored as text into a real date serial number, which is what makes sorting and filtering work again.

Syntax

=DATEVALUE(date_text) and =TIMEVALUE(time_text)

Arguments

ArgumentDescription
date_textrequiredA date written as text, in a format your locale recognises.
time_textrequiredFor TIMEVALUE: a time written as text.

Related functions

DATEVALUEISNUMBER
ƒxExcel Date Serial ConverterLive
Serial as date
May 31, 2024
Date as serial
46184
=TEXT(A2,"yyyy-mm-dd") · =DATEVALUE(B2)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

DATEVALUE turns text that reads like a date into an actual date value, and TIMEVALUE does the same for times. This is the repair for the most frequent import defect after text-stored numbers: dates that look right, sort alphabetically, and are ignored by every date filter and calculation. The catch is locale — "03/04/2026" is March in the US and April in Europe, and DATEVALUE follows your system settings without asking. Where the source format is unambiguous that is fine; where it is not, rebuilding the date with DATE and explicit parts is the safe route. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel datevalue to date”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Repairing an imported text date: =DATEVALUE(A2), then format the result as a date. Confirming the problem first: =ISNUMBER(A2) returning FALSE on a date-looking cell means it is text. Locale-proof rebuilding for an unambiguous ISO string: =DATE(LEFT(A2,4), MID(A2,6,2), RIGHT(A2,2)). Combining a text date and time: =DATEVALUE(A2) + TIMEVALUE(B2). DATEVALUE fixes date columns that sort alphabetically, which is the defect that makes an imported report silently unusable. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “excel datevalue to date”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Trusting it on ambiguous formats such as 03/04/2026, where the locale silently decides the month.
  • Passing a value that is already a real date, which returns #VALUE!.
  • Forgetting to format the result, which shows a five-digit serial number.

Frequently asked questions

How do I convert text to a date in Excel?

=DATEVALUE(A2) then format as a date, or Data → Text to Columns with the date format selected for a whole column at once.

Why does DATEVALUE return #VALUE!?

Either the text is not recognisable as a date in your locale, or the cell already holds a real date.

How do I avoid the day/month ambiguity?

Rebuild the date explicitly with DATE and the parts sliced out of the string, which never depends on locale.