In this article, you will learn what the DATEVALUE function is and how to use it in Google Sheets.
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.
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.
You can use the DAYS function to compute the number of days between two specific dates.
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.
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
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.
Learn how to do this step-by-step in the video below 👇