FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

DATEVALUE in Google Sheets

DATEVALUE with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the DATEVALUE Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Days into the year

A
1

Formula: A1: =DATEVALUE("3/15/2024")-DATE(2024,1,1)

Result: 74

The text becomes a serial number; subtracting January 1 gives the days since then.

ISO text

A
1

Formula: A1: =DATEVALUE("2024-03-15")-DATEVALUE("2024-03-01")

Result: 14

ISO-formatted text is understood everywhere, and the difference is 14 days.

Text that is not a date

A
1

Formula: A1: =DATEVALUE("hello")

Result: #VALUE!

The text cannot be read as a date, which gives an error.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =DATEVALUE("3/15/2026")

Example spreadsheet for DATEVALUE
ABCDEF
1StartEndHolidayTimeResult
23/15/20266/20/20265/1/202614:453/15/2026
31/31/20262/28/20265/9/202609:30
412/24/20251/9/2026
Result in F2: 3/15/2026

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.