FormulaCraft

DATEVALUE

DATEVALUE parses a text string that represents a date and returns the corresponding numeric date serial number. Use it when dates have been imported as text (e.g., from CSV files or copy-paste operations) and you need to perform arithmetic, sorting, or filtering on them as real dates.

Excel
=DATEVALUE(A2)
Google Sheets
=DATEVALUE(A2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1Pass the cell containing the text-formatted date to DATEVALUE (e.g., =DATEVALUE(A2)).
  2. 2Format the result cell as a Date to display it as a readable date rather than a serial number.
  3. 3Once converted, use the result in date arithmetic: =TODAY()-DATEVALUE(A2) calculates days elapsed.

Need a version for your data?

Try: “Convert text dates imported from a CSV file into real dates I can sort and calculate with

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: