Convert a date in text format to a valid date
=DATEVALUE(date_text)
| Parameter | Description |
|---|---|
date_text |
A valid date in text format. |
To illustrate how the DATEVALUE function works, the formula below shows how the text "3/10/1975" is converted to the date serial number 27463 by DATEV
=DATEVALUE("3/10/1975") // returns 27463
In the example shown, column B contains dates entered as text values, except for B15, which contains a valid date. The formula in C5, copied down, is:
=DATEVALUE(B5)
Notice that the DATEVALUE formula in C15 fails with a #VALUE! error, because cell B15 already contains a valid date. This is a limitation of the DATEV
=A1+0