Hello,
Select a different account.
You have multiple accounts

This article describes the formula syntax and usage of the DATEVALUE function in Microsoft Excel.

## Description

The DATEVALUE function converts a date that is stored as text to a serial number that Excel recognizes as a date. For example, the formula =DATEVALUE("1/1/2008") returns 39448, the serial number of the date 1/1/2008. Remember, though, that your computer's system date setting may cause the results of a DATEVALUE function to vary from this example

The DATEVALUE function is helpful in cases where a worksheet contains dates in a text format that you want to filter, sort, or format as dates, or use in date calculations.

## Syntax

DATEVALUE(date_text)

The DATEVALUE function syntax has the following arguments:

• Date_text    Required. Text that represents a date in an Excel date format, or a reference to a cell that contains text that represents a date in an Excel date format. For example, "1/30/2008" or "30-Jan-2008" are text strings within quotation marks that represent dates.

Using the default date system in Microsoft Excel for Windows, 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.

## Remarks

• Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.

• Most functions automatically convert date values to serial numbers.

## Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

11

3

2011

Formula

Description

Result

=DATEVALUE("8/22/2011")

Serial number of a date entered as text.

40777

=DATEVALUE("22-MAY-2011")

Serial number of a date entered as text.

40685

=DATEVALUE("2011/02/23")

Serial number of a date entered as text.

40597

=DATEVALUE("5-JUL")

Serial number of a date entered as text, using the 1900 date system, and assuming the computer's built-in clock returns 2011 as the current year.

39634

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

Serial number of a date created by combining the values in cells A2, A3, and A4.

40850

### Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7781983,"math_prob":0.81608325,"size":2789,"snap":"2023-40-2023-50","text_gpt3_token_len":682,"char_repetition_ratio":0.16086176,"word_repetition_ratio":0.06736842,"special_character_ratio":0.27465042,"punctuation_ratio":0.104166664,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96514904,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-01T06:24:51Z\",\"WARC-Record-ID\":\"<urn:uuid:82807d87-86a2-42c9-8bc5-bd5581e17c2f>\",\"Content-Length\":\"129078\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6808067e-9468-4bb2-ad19-ed0b3895e21f>\",\"WARC-Concurrent-To\":\"<urn:uuid:a6d3341b-44b8-4ac8-9d96-404692494dbc>\",\"WARC-IP-Address\":\"23.50.124.110\",\"WARC-Target-URI\":\"https://support.microsoft.com/en-us/office/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252?ui=en-us&rs=en-us&ad=us\",\"WARC-Payload-Digest\":\"sha1:QATLWTU44WNGSO5GTJ5ZE4XQA26XJVGP\",\"WARC-Block-Digest\":\"sha1:FYY4OLXTZC2TD2EUG647WNS7PI6V55JV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100276.12_warc_CC-MAIN-20231201053039-20231201083039-00000.warc.gz\"}"}