Article ID: 242267 - Last Review: January 25, 2007 - Revision: 2.2 Works: How to Add or Subtract Days to or from a Date in a Spreadsheet CellThis article was previously published under Q242267 SUMMARY
This article describes how to add or subtract a specified number of years, months, or days to or from a date in a Works spreadsheet cell.
MORE INFORMATION
To add or subtract a specified number of years, months, or days to or from a date in a Works spreadsheet cell, use the following formula:
=Date(Year(cellref)+years,Month(cellref)+months,Day(cellref)+days)
where years, months, and days are integers, and cellref is a spreadsheet cell reference.
As an example, to find the date that is three years, one month, and five days later than the date stored in cell A1, use the following formula: =Date(Year(A1)+3,Month(A1)+1,Day(A1)+5)
If cell A1 contains the date "1/1/1989," the formula returns
the serial number "33640." This serial number is displayed as "February 6, 1992" when you assign the Time/Date format to the cell that contains the formula.
To assign the Time/Date format to a cell:
If the formula returns an "ERR" string, the calculated date probably falls outside of the valid date range for Works. The valid date range for Works is from 1/1/1900 to 6/3/2079. APPLIES TO
| Article Translations
|

Back to the top
