Scaling API-first – The story of a global engineering organization
Excel Formula For A List Of Dates
1. Excel: Formula for a List of Dates
Have you ever needed a list of dates for a specific day of the week over an
extended period? For example, let’s say you need to know the dates for
every Monday for the next three months. A simple formula in Excel makes
it easy for you to create a quick list.
First, select the column in which you want to create the list. Format the
cells to show dates. Select the column, right-click and choose Format
Cells. On the Number tab, select Date in the Category box. In the Type
box, select the specific date format you want to use. For this example we
will choose the *3/14/01 format.
Enter the date of the first day of the series in the first cell of the column.
Let’s say you want to start at the beginning of the year, so enter 1/04/11
in cell A1. Since you want cell A2 to show the date for one week from the
date in A1, the formula for A2 will be =A1+7. Now all you need to do is
click on the good old fill handle and drag it down to A13 and we have our
list of Mondays for January, February and March.
You can alter this formula to work for any day of the week and date
repetition. For instance, if you want to know every other Monday, change
the formula to =A1+14. If you want to include the day of the week as
well, just go back to the Format Cells dialog and change the number
format to the Wednesday, March 14 option.