How can I use the function DATEVALUE in Google Sheets?

How can I use the function DATEVALUE in Google Sheets?

The DATEVALUE function in Google Sheets is a useful tool for converting a date in text format into a numerical date value that can be used in various calculations and functions. This function takes a date in a recognizable format and converts it into a date serial number, which is the number of days since December 30, 1899. Once converted, this numerical value can be used in various date-related calculations, such as finding the difference between two dates or determining the day of the week for a given date. By using the DATEVALUE function, you can efficiently work with dates and perform complex calculations in your Google Sheets without having to manually convert them into numerical values.

DATEVALUE

Converts a provided date string in a known format to a date value.

Examples

Make a copy

DATEVALUE accepts different input string format.

[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdEhEQjNSeWZkdHF6TnJTRHk4VXdsd1E&single=true&gid=0&output=html&widget=true” width=”500″]

Sample Usage

DATEVALUE("1969-7-20")

DATEVALUE("7/20/1969")

DATEVALUE(A2)

Syntax

DATEVALUE(date_string)

  • date_string – The string representing the date.

    • Understood formats include any date format which is normally autoconverted when entered, without quotation marks, directly into a cell. Understood formats may depend on region and language settings.

Notes

  • The input to DATEVALUE must be a string – if a number or cell reference to a cell containing a number is provided, the #VALUE! error will be returned.

  • DATEVALUE returns integers that can be used in formulas. To get dates, change the cell format to Date

  • If providing an explicit string input to DATEVALUE rather than a cell reference, surrounding quotation marks are required.

  • Some date formats are not understood by Google Sheets. To quickly ensure that the desired date format is understood, type an example of it into an empty cell, without quotation marks.

See Also

TO_DATE: Converts a provided number to a date.

N: Returns the argument provided as a number.

DATE: Converts a year, month, and day into a date.

Cite this article

stats writer (2024). How can I use the function DATEVALUE in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-the-function-datevalue-in-google-sheets/

stats writer. "How can I use the function DATEVALUE in Google Sheets?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-the-function-datevalue-in-google-sheets/.

stats writer. "How can I use the function DATEVALUE in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-the-function-datevalue-in-google-sheets/.

stats writer (2024) 'How can I use the function DATEVALUE in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-the-function-datevalue-in-google-sheets/.

[1] stats writer, "How can I use the function DATEVALUE in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I use the function DATEVALUE in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top