0% found this document useful (0 votes)
56 views

Date Value

DATEVALUE returns the serial number of a date represented as text. It converts dates in text format, like "1/30/2008" or "30-Jan-2008", into a serial number that can be used in calculations. The serial number represents the number of days since January 1, 1900. DATEVALUE ignores any time portion of the date text. If the year is omitted, it uses the current year from the computer's clock. Excel for Macintosh uses a different default date system starting from January 1, 1904.

Uploaded by

FrazButt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Date Value

DATEVALUE returns the serial number of a date represented as text. It converts dates in text format, like "1/30/2008" or "30-Jan-2008", into a serial number that can be used in calculations. The serial number represents the number of days since January 1, 1900. DATEVALUE ignores any time portion of the date text. If the year is omitted, it uses the current year from the computer's clock. Excel for Macintosh uses a different default date system starting from January 1, 1904.

Uploaded by

FrazButt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

DATEVALUE

Show All

Returns the serial number of the date represented by date_text. Use DATEVALUE to convert a date represented by

text to a serial number.

Syntax

DATEVALUE(date_text)

Date_text is text that represents a date in a Microsoft 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 Excel for Windows,

date_text must represent a date from January 1, 1900, to December 31, 9999. Using the default date system in Excel

for the Macintosh, date_text must represent a date from January 1, 1904, to December 31, 9999. DATEVALUE

returns the #VALUE! error value if date_text is out of this range.

If the year portion of date_text is omitted, DATEVALUE uses the current year from your computer's built-in clock.

Time information in date_text is ignored.

Remarks

 Excel stores dates as sequential serial numbers so 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,448 days

after January 1, 1900. Excel for the Macintosh uses a different date system as its default.

 Most functions automatically convert date values to serial numbers.

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

1. Create a blank workbook or worksheet.

2. Select the example in the Help topic.


NOTE Do not select the row or column headers.

Selecting an example from Help

3. Press CTRL+C.

4. In the worksheet, select cell A1, and press CTRL+V.

5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+`
(grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

A B

1 Formula Description (Result)

2 =DATEVALUE("8/22/2008" Serial number of the text date, using the 1900 date system (39682)
)
3
=DATEVALUE("22-AUG- Serial number of the text date, using the 1900 date system (39682)
4 2008")

5 =DATEVALUE("2008/02/2 Serial number of the text date, using the 1900 date system (39501)
3")

=DATEVALUE("5-JUL") Serial number of the text date, using the 1900 date system, and assuming the
computer's built-in clock is set to 2008 (39634)

NOTE To view the number as a date, select the cell, and then on the Sheet tab, in the Number group, click the

arrow next to Number Format, and click Short Date or Long D

You might also like