DATEVALUE converts a date stored as text into a real date value that Excel can calculate with.
DATEVALUE takes text that looks like a date — such as "2026-06-22" or "June 22, 2026" — and converts it into a real, working date value Excel can use in calculations.
This matters because dates imported from other systems often arrive as plain text. Until converted, formulas like subtracting two dates will not work correctly on them.
=DATEVALUE(date_text)| Argument | Description |
|---|---|
| date_text required | A text string that represents a date, in a recognizable format. |
DATEVALUE actually returns the underlying serial number Excel uses for dates internally — format the cell as a date to see it displayed properly.
=DATEVALUE("2026-06-22")Returns the serial number for June 22, 2026 — format the cell as a date to see it displayed as a real date.
=DATEVALUE(A2)If A2 contains the text "06/22/2026", this returns a real, calculable date value.
=DATEVALUE(B2)-DATEVALUE(A2)Converts two text dates first, then finds the number of days between them — necessary if both started as plain text.
DATEVALUE returns a serial number, which looks like a meaningless number until you apply a date format to the cell.
DATEVALUE depends on the text resembling a real date in a format Excel understands — completely nonstandard formats will return a #VALUE! error.
ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.
Start practicing free →