Google Sheets DATEVALUE Function: Syntax, Examples & Tips

The DATEVALUE function converts a date in text format into a serial number that Google Sheets recognizes as a date.
Google Sheets
DATEVALUE(date_string)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is DATEVALUE?
  3. A Practical Example
  4. DATEVALUE Formula
  5. Result of the Formula
  6. Why Use DATEVALUE?
  7. Key Takeaways:
  8. Example use case

Parameters

date_string:
A text representation of a date that you want to convert into a date value. This can be in various formats, such as "YYYY-MM-DD", "MM/DD/YYYY", or "DD-MMM-YYYY".

What is DATEVALUE?

The DATEVALUE function in Google Sheets is a useful tool that converts a date represented as text into a serial number that Google Sheets recognizes as a date. This function is particularly helpful when dealing with dates that are not in a standard date format, allowing users to perform date calculations and comparisons easily.

In simpler terms, DATEVALUE allows you to transform text-based dates into a format that Google Sheets can understand and manipulate.

A Practical Example

Imagine you have a list of dates in text format that you want to convert into actual date values for analysis:

Dates Table:

DateText
"2023-10-01"
"October 2, 2023"
"10/03/2023"

You want to convert these text dates into serial numbers so you can perform calculations like finding the difference between dates.

DATEVALUE Formula

To achieve this, you would use the DATEVALUE function as follows:

Google Sheets
=DATEVALUE(A2)

In this formula:

  • A2 is the cell containing the text date you want to convert.

Result of the Formula

When you apply the DATEVALUE formula to the Dates Table, the output would look like this:

DateTextSerial Number
"2023-10-01"45016
"October 2, 2023"45017
"10/03/2023"45018

In this case, the DATEVALUE function converts the text dates into serial numbers that Google Sheets can recognize as dates.

Why Use DATEVALUE?

DATEVALUE is beneficial because it allows users to work with dates that are not formatted correctly. By converting text dates into serial numbers, users can perform date arithmetic, sorting, and filtering without any issues. This function simplifies the process of handling dates in spreadsheets, ensuring accurate calculations and data analysis.

Key Takeaways:

  • DATEVALUE: A Google Sheets function that converts text-based dates into serial numbers.
  • Text to Date: Ideal for transforming non-standard date formats into usable date values.
  • Date Calculations: Enables users to perform arithmetic and comparisons on dates easily.
  • Common Use Cases: Useful for data import, cleaning, and any scenario where dates are stored as text.

DATEVALUE is an essential function for anyone working with dates in Google Sheets, providing a straightforward way to enhance date management and analysis capabilities.

Happy spreadsheeting!

Example use case

You have a table with project deadlines in text format. By using the DATEVALUE formula, you can convert these text dates into date values in Column C, allowing for accurate date calculations and sorting, enhancing project management efficiency.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.