Professional Documents
Culture Documents
CIS 2640 Excel 07 - Dates and Date Functions
CIS 2640 Excel 07 - Dates and Date Functions
CIS 2640 Excel 07 - Dates and Date Functions
Functions
Book: Microsoft Excel 2016 Data Analysis and Business Modeling
Internal Representation of a date
Excel stores dates and times as a number representing the number of days since January
1, 1900 (and a fractional portion of a 24 hour day). This is called the serial format of
date or serial date-time.
dddddd.tttttt
The integer portion is number of days since 1/1/1900.
The fractional portion is the fractional portion of a 24 hour day. For example, 8:00
a.m. is stored as 0.333333 (or 8 / 24)
Tips
To see the serial number behind a date: Ctrl + `
You can also see the serial number by formatting a cell into General.
Use datevalue() function to convert a string date to serial date.
To convert a date to its serial number: Ctrl + Shift + ~
Dr. K. Chen, 2015 2
Watch out with the shorthand notation
When you enter a date with only two digits in the year, you need
to be a bit more careful:
Excel uses 29/30 as the cut-off point between 1900 and 2000.
If year is 1 – 29, it is treated as a year in 2000.
E.g., 1/1/29 = 1/1/2029, 1/1/00 = 1/1/2000
If year is 30 – 99, it is treated as a year in 1900.
E.g., 1/1/30 = 1/1/1930, 1/1/55 = 1/1/1955
Tips
The 29/30 cut-off started in Excel 97 and Excel 2000. Excel95 uses 19/20.
When in doubt, use the full 4-digit year.
Dr. K. Chen, 2015 3
Two Items