Sub topic 1
Dates Are Numbers: The Serial Number Model
Prerequisites
Assume you can enter and edit Excel formulas, use cell references such as A2, and apply number formats to cells.
Dates are numbers
Excel stores a date as a serial number, which is a count of days from a starting date. In Excel's usual 1900 date system, 15 March 2023 is stored as 45000. Excel displays that number as a date when the cell has a date format.
Time is stored as a fraction of one day:
0.5means noon.0.25means 6:00 AM.45000.5means 15 March 2023 at noon.
This stored value lets Excel calculate with dates using ordinary arithmetic.
Format versus value: seeing the serial number
A cell's value is the stored number. Its format controls how Excel displays that value.
To inspect a date's serial number:
- Enter a date in
A1. - Select
A1. - Choose Home > Number Format > General.
- Read the displayed number.
- Change the format back to Short Date.
Changing the format does not change the date. It only changes its appearance.
> callout note > A date that looks correct may still be text rather than a numeric date. Numeric dates can be added and subtracted directly.
Building a date with DATE
DATE creates a date from separate year, month, and day values:
=DATE(2023,3,15)With General formatting, this returns 45000. With date formatting, it displays as 15 March 2023. Using DATE is safer than joining date parts into text because Excel receives a real numeric date.
Adding and subtracting dates
Subtracting one date from another returns the number of days between them:
=DATE(2024,3,1)-DATE(2024,1,1)The result is 60, because 2024 is a leap year. Adding a number moves a date forward by that many days. Subtracting a number moves it backward:
=DATE(2023,3,15)+10
=DATE(2023,3,15)-7The first formula returns 25 March 2023, and the second returns 8 March 2023.
Exercise
If A2 contains 1 June 2024, what formula returns the date 30 days later?
Show answer
=A2+30