Home › Functions › Date & Time › DATEVALUE
fx
DATEVALUE
Date & Time  ·  Since: Excel 2003  ·  9 languages

The DATEVALUE function converts a date that is stored as text to a serial number that Excel recognizes as a date. For example, the formula =DATEVALUE("1/1/2008") returns 39448, the serial number of the date 1/1/2008. Remember, though, that your computer's system date setting may cause the results of a DATEVALUE function to vary from this example

🌐 Translations

English DATEVALUE
Deutsch DATWERT
Français DATEVAL
Español FECHANUMERO
Italiano DATA.VALORE
Português DATA.VALOR
Nederlands DATUMWAARDE
Polski DATA.WARTOŚĆ
Русский ДАТАЗНАЧ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

DATEVALUE(date_text)

Arguments

date_text (required) — Text that represents a date in an Excel date format, or a reference to a cell that contains text that represents a date in an Excel date format. For example, "1/30/2008" or "30-Jan-2008" are text strings within quotation marks that represent dates. Using the default date system in Microsoft Excel for Windows, the date_text argument must represent a date between January 1, 1900 and December 31, 9999. The DATEVALUE function returns the #VALUE! error value if the value of the date_text argument falls outside of this range. If the year portion of the date_text argument is omitted, the DATEVALUE function uses the current year from your computer's built-in clock. Time information in the date_text argument is ignored.

▶ Examples

=DATEVALUE(A2 & "/" & A3 & "/" & A4)
=DATEVALUE("5-JUL")
=DATEVALUE("1/1/2008")

Related functions

Copied to clipboard