Arrow left
Back to product guides
Google Sheets Formulas

DATEVALUE Function in Google Sheets: Explained

In this article, you will learn what the DATEVALUE function is and how to use it in Google Sheets.

What does the DATEVALUE function do?

The DATEVALUE function works as a converter from a date to a serial number. The serial number 1 is given to 12/31/1899. You can use the serial number as a value in the formula or calculation.

How to use the DATEVALUE formula in Google Sheets

  1. Type “=DATEVALUE” or go to “Insert”“Function” (or directly navigate to the “Functions” icon)  “Date”“DATEVALUE”.
  2. Input a date you need to convert to a numeric value (serial number) by cell reference or manual input.
  3. Press the “Enter” key.
How to insert the DATEVALUE function from the menu bar in Google Sheets

When you input a date in the formula, by cell reference or manual input, you need to be careful about the formatting. The formatting of the date should be the one Google Sheets can recognize. If you don’t have any customized formatting, use standard format or one of the types listed in “Custome date and time”. Look at the following screenshot. The rows highlighted in red are examples where the function doesn’t work properly because of their inputs’ formatting. Note that serial number 1 is given to “12/31/1899”, as you can see in the picture.

How the DATEVALUE formula works in Google Sheets with examples

How do I calculate the number of days between two dates in Google Sheets?

You can use the DAYS function to compute the number of days between two specific dates.

Can you automatically populate dates in Google Sheets?

You can use the TODAY or NOW functions to get the current date in Google Sheets. The TODAY formula shows the year, month, and date on that day, and the NOW function offers time (hour, minute, and second) in addition to what the TODAY formula shows. Their common feature is the values they return are automatically updated whenever you open or refresh the sheet. 

Other formulas related to date and time

If you don’t get the right answer to your question in this article or you have other questions related to date and/or time, you may find the answers in the following articles.

Formulas related to dates

How to Use EDATE Function in Google Sheets - understand a date before/after a specific number of days

EOMONTH Function in Google Sheets: Explained - understand an end date of a month

Formulas related to time

How to Insert Current Time in Google Sheets - NOW function

Analyze your live financial data in a snap

Are you learning this formula to build a financial model or financial KPI dashboard, or conduct financial analysis? If so, LiveFlow may help you to automate manual workflows and keep numbers updated in real time. For instance, you can easily compare your Budget versus Actual without any manual work. Furthermore, you can access other templates here, from the simple Income Statement and Operational KPI templates to Multi-Currency Consolidated Income Statement, Balance Sheet, and Cash Flow templates. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

Learn how to do this step-by-step in the video below 👇

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at:
Check Icon
Call us at +1 (415) 650-1711