Microsoft Office Tutorials and References
In Depth Information
The advantage of using formulas (rather than the AutoFill feature) to create a series of dates is
that you can change the first date, and the others will then update automatically. You need to
enter the starting date into a cell and then use formulas (copied down the column) to generate
the additional dates.
The following examples assume that you entered the first date of the series into cell A1 and the
formula into cell A2. You can then copy this formula down the column as many times as needed.
To generate a series of dates separated by seven days, use this formula:
To generate a series of dates separated by one month, you need a more complicated formula
because months don’t all have the same number days. This formula creates a series of dates,
separated by one month:
To generate a series of dates separated by one year, use this formula:
To generate a series of weekdays only (no Saturdays or Sundays), use the formula that follows.
This formula assumes that the date in cell A1 is not a weekend day:
Converting a non-date string to a date
You may import data that contains dates coded as text strings. For example, the following text
represents August 21, 2010 (a four-digit year followed by a two-digit month, followed by a
To convert this string to an actual date, you can use a formula such as this one, which assumes
the coded date is in cell A1: