Add and subtract days with dates
Dates and times6 min
Builds on Copy a formula down a column.
Accounts payable pays every invoice 30 days after its date, and the project office wants to know how many days are left before each deadline.
How it works
Excel stores every date as a whole number: the count of days since the start of 1900. Jan 1, 1900 is day 1, and Nov 29, 2026 is day 46355. The format only decides what you see, so a date cell switched to General shows its number.
Because a date is a number, date arithmetic is ordinary arithmetic. Add 30 to a date and you get the date 30 days later, across month and year ends, leap years included. Subtract one date from another and you get the number of days between them.
Picture a tape measure marked in days from Jan 1, 1900: a date is a mark on it, and the distance between two marks is the number of days between them.
A time is a fraction of a day: 0.5 is 12:00 midday, 0.25 is 06:00 and 0.75 is 18:00. A date with a time, such as Nov 29, 2026 at 18:00, is 46355.75.
Example
A contract signed on Dec 14, 2026, in F2, has 90 days' notice.
=F2+90It returns Mar 14, 2027.
Common mistakes
- A count of days can come out looking like a date, such as Jan 14, 1900, because Excel copied the date format to the new cell. Format it as General or Number.
- Subtraction counts one end only: from Mon, Aug 3 to Fri, Aug 7 is 4 days. When the first and the last day both count, as in a five-day rental, add 1.
- A date that Excel didn't recognize when it was typed, such as
03.08.2026, is text, and=F3+30returns#VALUE!. Real dates sit on the right of the cell.
In short
- A date is a count of days, so add days with + and count the days between two dates with a minus sign.
- A time is part of a day: 0.5 is midday.
- Format a count of days as a number, and add 1 when both ends count.
Practice
4 exercises · free with an account