Google Sheets DATEVALUE Function

This post will guide you how to use Google Sheets DATEVALUE function with syntax and examples.

Description


The Google Sheets DATEVALUE returns the serial number of date and it can be used to convert a date represented as text format into a serial number that recognizes as a date format.

The DATEVALUE function can be used to convert a given date string in a known format to a date value. The purpose of this function is to convert a date in text format to a valid date and its returned values is a date value.

For example, you can convert a date “2021/11/6” that is text format to a serial number, you can use the formula: =DATEVALUE (“2021/11/6”). Then it returns a serial number “44506” you can use the google sheets dates to manipulate with formulas or pivot table to filter, sort. It is very useful than the text dates.

The DATEVALUE function is a build-in function in Google Sheets and it is categorized as a Date function.

Syntax


The syntax of the DATEVALUE function is as below:

=DATEVALUE(date_text)

Where the DATEVALUE function arguments is:

  • Date_text -This is a required argument. A valid date that the format is text. Or the text that represents a date in an excel date format.

Note:

  • The date_text argument must represent a date between January 1, 1900 and December 31, 9999. The DATEVALUE function returns the #VALUE! Error value if the value of the date_text argument falls outside of this range.
  • If the year portion of the date_text argument is omitted, the DATEVALUE function uses the current year from your computer’s built-in clock. Time information in the date_text argument is ignored.
  • January 1 1900 is serial number 1 by default.
  • Date_text argument must be a string, if a number or cell reference to a cell containing a number is provided, the DATEVALUE function will return the #VALUE! Error.
  • If you want to provide an explicit string input to DATEVALUE function rather than a cell reference, you must surround quotation marks for inputting string.

Google Sheets DATEVALUE Function Examples


The below examples will show you how to use google sheets DATEVALUE Function to return a serial number of a given date.

1# Get a serial number of a date (11/06/2021) the format as text, enter the following formula in Cell B1.

=DATEVALUE("11/06/2021")

google sheets datevalue function

2# Get a serial number of a date (6-Nov-2021) the format as text, enter the following formula in Cell B2.

=DATEVALUE("6-Nov-2021")

google sheets datevalue function

3# Get a serial number of a date (2021/03/14) the format as text, enter the following formula in Cell B3.

=DATEVALUE("2021/11/6")

google sheets datevalue function

4# get a serial number from a date that the year portion is omitted (11/6) assuming the current year is 2021, using the following formula:

=DATEVALUE("11/6")

google sheets datevalue function

5# get a serial number from a date that created by combining the values in Cells A1, A2, and A3

=DATEVALUE(A1&"/"&A2&"/"&A3)

google sheets datevalue function

Related Posts

Google Sheets WEEKDAY Function
google sheet weekday function1

This post will guide you how to use Google Sheets WEEKDAY function with syntax and examples. Description The Google Sheets WEEKDAY function returns an integer value representing the day of the week for a given date and the value is ...

Google Sheets TIMEVALUE Function
google sheets timevalue function1

This post will guide you how to use Google Sheets TIMEVALUE function with syntax and examples. Description The Google Sheets TIMEVALUE returns the decimal number of the time represented by a text string. It will convert a time represented by ...

Google Sheets TODAY Function
google sheets today function

This post will guide you how to use Google Sheets TODAY function with syntax and examples. Description The Google Sheets TODAY function get the current date as a date value. And it will be updated each time when your worksheet ...

Google Sheets TIME Function
google sheets time function1

This post will guide you how to use Google Sheets TIME function with syntax and examples. Description The Google Sheets TIME function converts an hour, minute and second into a time. The TIME function can be used to create a ...

Google Sheets SECOND Function
google sheets second function1

This post will guide you how to use Google Sheets SECOND function with syntax and examples. Description The Google Sheets SECOND function returns the seconds of a time value. Or returns an integer value that represent the second component of ...

Google Sheets NOW Function
google sheets now function1

This post will guide you how to use Google Sheets NOW function with syntax and examples. Description The Google Sheets NOW function returns the serial number of the current date and time. And it will be updated each time when ...

Google Sheets NETWORKDAYS.INTL Function
google sheets networkdays.intl function1

This post will guide you how to use Google Sheets NETWORKDAYS.INTL function with syntax and examples. Description The Google Sheets NETWORKDAYS.INTL function returns the number of net working days between tow given days excluding specified weekend days and holidays. The ...

Google Sheets NETWORKDAYS Function
google sheets networkdays function1

This post will guide you how to use Google Sheets NETWORKDAYS function with syntax and examples. Description The Google Sheets NETWORKDAYS function returns the number of net working days between tow given days. The NETWORKDAYS function can be used to ...

Google Sheets MONTH Function
google sheets month function1

This post will guide you how to use Google Sheets MONTH function with syntax and examples. Description The Google Sheets MONTH function returns the month of a date represented by a serial number. And the month is an integer number ...

Google Sheets MINUTE Function
google sheets minute function1

This post will guide you how to use Google Sheets MINUTE function with syntax and examples. Description The Google Sheets MINUTE returns the minutes of a time value. And the minutes is an integer number from 0 to 59. So ...

Sidebar